SlideShare una empresa de Scribd logo
1 de 34
Descargar para leer sin conexión
Dennis C. Erickson ~ Senior Mentor for
       Teams 1510 and 2898




                                         1	
  
Working	
  with	
  National	
  Instrument’s	
  
     Hardware	
  and	
  Software	
  
                     	
  
              Specifically:	
  
      Software	
  ~	
  LabVIEW	
  
           Hardware	
  ~	
  cRIO	
  

                                                  2	
  
LabVIEW	
  
             VI	
  =	
  Virtual	
  Instrument	
  
          EW	
  =	
  Engineering	
  Workstation	
  
                              	
  
VI	
  =	
  Virtual	
  Instrument	
  or	
  in	
  other	
  languages	
  “Routine”,	
  
                            SubVI	
  =	
  Subroutine	
  



                                                                                       3	
  
• Graphical	
  Interface	
  (Not	
  Text	
  Based)	
  
• Dataflow	
  (All	
  inputs	
  must	
  be	
  updated	
  before	
  VI	
  –	
  Virtual	
  
Instrument	
  –	
  executes)	
  
• Self	
  Documenting	
  (You	
  know	
  what	
  the	
  code	
  does)	
  
	
  




                                                                                           4	
  
• Portable	
  Code	
  
(VIs	
  are	
  easily	
  
reused)	
  
• Advanced	
  set	
  of	
  
diagnostic	
  tools;	
  
probes,	
  execution	
  
highlighting,	
  
error	
  reporting,	
  
ability	
  to	
  
surround	
  the	
  
code	
  with	
  a	
  
“virtual	
  world	
  
simulation	
  
environment”	
  for	
  
testing.	
  
                      5	
  
• Perfectly	
  tailored	
  for	
  NI	
  hardware	
  
• Automatically	
  handles	
  multiple	
  cores	
  	
  
and	
  threads	
  
• Easily	
  compiles	
  to	
  RT	
  (Real-­‐time)	
  
Operating	
  Systems	
  and	
  FPGA	
  (Field	
  
Programmable	
  Gate	
  Arrays)	
  used	
  in	
  
the	
  cRIO	
  processor	
  
                                                          6	
  
While	
  it	
  is	
  entirely	
  possible	
  to	
  
win	
  a	
  contest	
  with	
  a	
  robot	
  that	
  is	
  
“bare	
  bones”	
  the	
  better	
  goal	
  is	
  to	
  
learn	
  how	
  to	
  do	
  things	
  along	
  the	
  
way	
  that	
  may	
  or	
  may	
  not	
  be	
  used.	
  
                            	
  
                            	
  
                                                              7	
  
8	
  
This	
  section	
  offers	
  a	
  brief	
  short	
  course	
  on	
  
            the	
  language	
  LabVIEW	
  
                              	
  


                                                                      9	
  
Launch	
  
LabVIEW	
  to	
  
create	
  a	
  new	
  
project	
  




                         10	
  
Name	
  your	
  
project	
  .	
  
You	
  might	
  for	
  
example	
  use	
  your	
  
team	
  name	
  and	
  
year	
  in	
  the	
  name:	
  
i.e.,	
  “Team	
  1510	
  for	
  
2010	
  Robot	
  
Project”	
  
	
  
Be	
  sure	
  that	
  you	
  
enter	
  your	
  team	
  IP	
  
in	
  the	
  following	
  
format:	
  
                              11	
  
Adding	
  a	
  VI	
  to	
  
your	
  project:	
  
If	
  its	
  new,	
  then	
  
right-­‐click	
  to	
  “VI”	
  
and	
  select	
  and	
  
name	
  it.	
  
	
  
If	
  adding	
  an	
  
existing	
  one	
  select	
  
the	
  menu	
  item	
  
“Add”.	
  


                             12	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Front	
  Panel	
  



                                                                      Numerical	
  Controls	
  
                                                                        and	
  Indicators	
  




                                                                                           13	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Front	
  Panel	
  


                                                                             Booleans	
  




                                                                                            14	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Front	
  Panel	
  


                                                                       Strings	
  and	
  Paths	
  




                                                                                              15	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Front	
  Panel	
  

                                                                    Arrays,	
  Clusters,	
  
                                                                     Matrices	
  and	
  
                                                                     Dialog	
  Boxes	
  




                                                                                               16	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Front	
  Panel	
  




                                                            List	
  Boxes,	
  Tables	
  
                                                                  and	
  Trees	
  


                                                                                           17	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Front	
  Panel	
  
                                                                               2D,	
  3D	
  
                                                                               Digital	
  
                                                                              Charts	
  and	
  
                                                                             Graphs	
  and	
  
                                                                             Special	
  Plots	
  




                                                                                              18	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Front	
  Panel	
  




                                                  Rings	
  and	
  Enums	
  



                                                                                       19	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Diagram	
  



                                                                    Structures	
  




                                                                                     20	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Diagram	
  




                                                            Arrays	
  




                                                                                21	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Diagram	
  



                                                              Structures,	
  Classes	
  
                                                                 and	
  Variants	
  




                                                                                           22	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Diagram	
  




                                                                   Numerics,	
  Booleans	
  
                                                                      and	
  Files	
  



                                                                                       23	
  
Some	
  example	
  controls	
  and	
  indicators	
  for	
  the	
  Diagram	
  




                                           Timing,	
  Dialog	
  Boxes,	
  
                                            Waveforms,	
  etc,	
  etc	
  


                                            Hundreds	
  of	
  other	
  
                                               functions	
  




                                                                                24	
  
Testing	
  the	
  Joystick	
  Power	
  Function	
  VI	
  

Task:	
  	
  
Test	
  the	
  VI	
  with	
  1000	
  
simulated	
  Joystick	
  
positions	
  from	
  0	
  to	
  +1	
  to	
  0	
  
to	
  -­‐1	
  (White	
  Line)	
  and	
  
create	
  9	
  plots	
  with	
  the	
  
following	
  function:	
  
	
  
Plotn	
  =	
  (motor	
  speed)m	
  
	
  
Where:	
  
	
  
Plotn	
  =	
  a	
  series	
  of	
  plots	
  
(9	
  total)	
  
Motor	
  speed	
  =	
  voltage	
  
input	
  to	
  the	
  motor	
  (from	
  1	
  
to	
  -­‐1)	
  
m	
  =	
  power	
  function	
  (use	
  
to	
  alter	
  the	
  forward	
  
sensitivity	
  of	
  the	
  Joystick)	
  
	
  
                                                                                                    25	
  
This	
  discussion	
  touches	
  on	
  the	
  following	
  
                   principle	
  areas:	
  
                                               	
  
• The	
  cRIO	
  hardware	
  (The	
  Brain)	
  
• The	
  Sensors,	
  Motors	
  and	
  Actuators	
  that	
  can	
  be	
  used	
  	
  
• The	
  DS	
  Drive	
  Station	
  (Link	
  from	
  the	
  User	
  to	
  the	
  robot’s	
  brain)	
  
                                                 	
                                                     26	
  
cRIO	
  –	
  Compact	
  Real-­‐time	
  Input/Output	
  
	
  
A	
  PAC	
  (Programmable	
  Automation	
  Controller)	
  which	
  is	
  an	
  industrial	
  
controller	
  that	
  is	
  used	
  in	
  advanced	
  systems	
  incorporating	
  software	
  
capabilities	
  such	
  as	
  control,	
  communication,	
  data	
  logging,	
  and	
  signal	
  
processing	
  requiring	
  rugged	
  hardware	
  performing	
  logic,	
  motion,	
  process	
  
control,	
  and	
  vision.	
  For	
  FIRST	
  applications,	
  ideal	
  for	
  robot	
  building.	
  



                                                                         A	
  fully	
  populated	
  
                                                                         cRIO	
  example	
  



                                                                                                        27	
  
Real-­‐time	
  operating	
  system	
  



cRIO	
  connected	
  
  to	
  a	
  Laptop	
  




                                 FPGA	
  –	
  Field	
  Programmable	
  Gate	
  Array	
  
                                 located	
  under	
  the	
  cRIO	
  chassis	
  




                                                                                     28	
  
The	
  following	
  Example	
  code	
  shows	
  how	
  to	
  create	
  an	
  environment	
  to	
  test	
  
 and	
  calibrate	
  VI	
  modules.	
  In	
  this	
  case	
  we	
  are	
  testing	
  the	
  Camera	
  Servo	
  
 motors	
  
                                                  Next	
  run	
  the	
  test	
  in	
  a	
  While	
  loop.	
  Note	
  the	
  Loop	
  
First	
  Initialize	
  the	
  test	
  (note	
     Sweep	
  constant	
  which	
  defines	
  the	
  loop	
  	
  cycle	
  
the	
  “Data	
  Dependency”	
  wire)	
            (20ms).	
  Here	
  the	
  loop	
  is	
  stopped	
  using	
  the	
  Stop	
  
                                                  Test?	
  command	
  	
  

                                                                            Finally	
  End	
  the	
  test	
  by	
  closing	
  all	
  
                                                                            references,	
  etc.	
  Again	
  note	
  the	
  Data	
  
                                                                            Dependency	
  and	
  use	
  of	
  a	
  Frame	
  
                                                                            structure	
  as	
  the	
  SubVI	
  has	
  no	
  wired	
  
                                                                            input	
  to	
  use	
  



                                                                                                                                        29	
  
The	
  following	
  slides	
  start	
  with	
  a	
  State	
  Chart	
  to	
  show	
  what	
  the	
  State	
  
Diagram	
  will	
  do.	
  The	
  next	
  slides	
  show	
  the	
  State	
  Diagram	
  created.	
  




                                                                                                               30	
  
State	
  diagrams	
  are	
  extremely	
  useful	
  in	
  creating	
  small	
  or	
  large	
  applications.	
  
Since	
  LabVIEW	
  is	
  a	
  DataFlow	
  language,	
  this	
  approach	
  adds	
  to	
  the	
  
robustness	
  of	
  the	
  application	
  
The	
  Application	
  starts	
  by	
  selecting	
  the	
  Initialize	
  Test	
  State	
  (case).	
  Note	
  that	
  we	
  check	
  for	
  
errors	
  and	
  if	
  the	
  Stop	
  Test?	
  Button	
  is	
  pressed.	
  Note	
  that	
  the	
  Enum	
  (far	
  left	
  constant	
  control)	
  
has	
  3	
  possible	
  states;	
  Initialize	
  Test,	
  Run	
  Test	
  and	
  End	
  Test	
  




                                                                                                                                                31	
  
These	
  slides	
  show	
  a	
  typical	
  State	
  Diagram	
  that	
  tests	
  camera	
  
        servos.	
  Note	
  the	
  inputs	
  from	
  the	
  joystick	
  and	
  a	
  smoothing	
  
        control	
  to	
  test	
  filtering.	
  
Next	
  if	
  no	
  errors,	
  run	
  the	
  While	
  loop	
  until	
  an	
  error	
  happens	
  or	
  
the	
  Stop	
  Test?	
  Button	
  is	
  pressed	
  the	
  go	
  to	
  the	
  next	
  State	
  




                                                                                                          32	
  
One	
  of	
  the	
  interesting	
  features	
  of	
  the	
  State	
  Diagram	
  is	
  confining	
  the	
  
application	
  code	
  to	
  one	
  screen,	
  thus	
  self	
  documenting	
  code	
  

Finally,	
  there	
  has	
  been	
  an	
  error	
  or	
  the	
  Stop	
  Test?	
  Button	
  has	
  
been	
  pressed	
  so	
  end	
  the	
  test	
  by	
  closing	
  references,	
  etc.	
  Note	
  that	
  
now	
  the	
  Boolean	
  constant	
  is	
  now	
  TRUE	
  which	
  stops	
  the	
  loop	
  




                                                                                                            33	
  
Dennis C. Erickson - dcerickson1@comcast.net	
  

Más contenido relacionado

Destacado

"And God Said... Let Us Make Man" Part 1
"And God Said... Let Us Make Man" Part 1"And God Said... Let Us Make Man" Part 1
"And God Said... Let Us Make Man" Part 1East Troy Bible Church
 
And God Said... Where is Your Brother?
And God Said... Where is Your Brother?And God Said... Where is Your Brother?
And God Said... Where is Your Brother?East Troy Bible Church
 
Healthy Christians Make Healthy Churches - Fellowship
Healthy Christians Make Healthy Churches - FellowshipHealthy Christians Make Healthy Churches - Fellowship
Healthy Christians Make Healthy Churches - FellowshipEast Troy Bible Church
 
"And God Said... Let Us Make Man" Part 2
"And God Said... Let Us Make Man"  Part 2"And God Said... Let Us Make Man"  Part 2
"And God Said... Let Us Make Man" Part 2East Troy Bible Church
 
Healthy Christians Make Healthy Churches - Church Re-Imagined
Healthy Christians Make Healthy Churches - Church Re-ImaginedHealthy Christians Make Healthy Churches - Church Re-Imagined
Healthy Christians Make Healthy Churches - Church Re-ImaginedEast Troy Bible Church
 
Healthy Christians Make Healthy Churches - Gospel
Healthy Christians Make Healthy Churches - GospelHealthy Christians Make Healthy Churches - Gospel
Healthy Christians Make Healthy Churches - GospelEast Troy Bible Church
 

Destacado (11)

FIRSTFare 2012 Fusion Joints
FIRSTFare 2012 Fusion JointsFIRSTFare 2012 Fusion Joints
FIRSTFare 2012 Fusion Joints
 
"And God Said... Let Us Make Man" Part 1
"And God Said... Let Us Make Man" Part 1"And God Said... Let Us Make Man" Part 1
"And God Said... Let Us Make Man" Part 1
 
And God Said... Where is Your Brother?
And God Said... Where is Your Brother?And God Said... Where is Your Brother?
And God Said... Where is Your Brother?
 
"And God Said... Let There Be"
"And God Said... Let There Be""And God Said... Let There Be"
"And God Said... Let There Be"
 
2012 or webinar (final)
2012 or webinar (final)2012 or webinar (final)
2012 or webinar (final)
 
Healthy Christians Make Healthy Churches - Fellowship
Healthy Christians Make Healthy Churches - FellowshipHealthy Christians Make Healthy Churches - Fellowship
Healthy Christians Make Healthy Churches - Fellowship
 
"And God Said... Let Us Make Man" Part 2
"And God Said... Let Us Make Man"  Part 2"And God Said... Let Us Make Man"  Part 2
"And God Said... Let Us Make Man" Part 2
 
Healthy Christians Make Healthy Churches - Church Re-Imagined
Healthy Christians Make Healthy Churches - Church Re-ImaginedHealthy Christians Make Healthy Churches - Church Re-Imagined
Healthy Christians Make Healthy Churches - Church Re-Imagined
 
Healthy Christians Make Healthy Churches - Gospel
Healthy Christians Make Healthy Churches - GospelHealthy Christians Make Healthy Churches - Gospel
Healthy Christians Make Healthy Churches - Gospel
 
Light of the Message - Advent Week 2
Light of the Message - Advent Week 2Light of the Message - Advent Week 2
Light of the Message - Advent Week 2
 
"Love For... God"
"Love For... God""Love For... God"
"Love For... God"
 

Similar a First fare 2011 lab-view overview

Introduction%20to%20 labview
Introduction%20to%20 labviewIntroduction%20to%20 labview
Introduction%20to%20 labviewandrearln
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursconquista2011
 
Sql Performance Tuning For Developers
Sql Performance Tuning For DevelopersSql Performance Tuning For Developers
Sql Performance Tuning For Developerssqlserver.co.il
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursArihant Jain
 
oracle 9i cheat sheet
oracle 9i cheat sheetoracle 9i cheat sheet
oracle 9i cheat sheetPiyush Mittal
 
Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Joon ho Park
 
Statit customqc overview[1]
Statit customqc overview[1]Statit customqc overview[1]
Statit customqc overview[1]Rana Daniyal
 
SETS
SETSSETS
SETSSETS
 

Similar a First fare 2011 lab-view overview (12)

Introduction%20to%20 labview
Introduction%20to%20 labviewIntroduction%20to%20 labview
Introduction%20to%20 labview
 
First fare 2010 lab-view overview
First fare 2010 lab-view overviewFirst fare 2010 lab-view overview
First fare 2010 lab-view overview
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hours
 
Sql Performance Tuning For Developers
Sql Performance Tuning For DevelopersSql Performance Tuning For Developers
Sql Performance Tuning For Developers
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hours
 
Labview.ppt
Labview.pptLabview.ppt
Labview.ppt
 
oracle 9i cheat sheet
oracle 9i cheat sheetoracle 9i cheat sheet
oracle 9i cheat sheet
 
NIS LabView
NIS LabViewNIS LabView
NIS LabView
 
Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.
 
Statit customqc overview[1]
Statit customqc overview[1]Statit customqc overview[1]
Statit customqc overview[1]
 
SETS
SETSSETS
SETS
 
Lafauci dv club oct 2006
Lafauci dv club oct 2006Lafauci dv club oct 2006
Lafauci dv club oct 2006
 

Más de Oregon FIRST Robotics

Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST Robotics
 
Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST Robotics
 
First fare 2013 business plan presentation
First fare 2013   business plan presentationFirst fare 2013   business plan presentation
First fare 2013 business plan presentationOregon FIRST Robotics
 
First fare 2013 competitive analysis presentation
First fare 2013   competitive analysis presentationFirst fare 2013   competitive analysis presentation
First fare 2013 competitive analysis presentationOregon FIRST Robotics
 
First fare 2013 website design for frc teams
First fare 2013   website design for frc teamsFirst fare 2013   website design for frc teams
First fare 2013 website design for frc teamsOregon FIRST Robotics
 
FIRSTFare 2013 overview of electronics-2014
FIRSTFare 2013   overview of electronics-2014FIRSTFare 2013   overview of electronics-2014
FIRSTFare 2013 overview of electronics-2014Oregon FIRST Robotics
 
First fare 2013 manipulators firstfare 2013
First fare 2013   manipulators firstfare 2013First fare 2013   manipulators firstfare 2013
First fare 2013 manipulators firstfare 2013Oregon FIRST Robotics
 
First fare 2013 district model overview 2014
First fare 2013   district model overview 2014First fare 2013   district model overview 2014
First fare 2013 district model overview 2014Oregon FIRST Robotics
 
First fare 2013 crowdfunding 101 (beginner) with notes
First fare 2013   crowdfunding 101 (beginner) with notesFirst fare 2013   crowdfunding 101 (beginner) with notes
First fare 2013 crowdfunding 101 (beginner) with notesOregon FIRST Robotics
 
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST TeamsOregon FIRST Robotics
 
2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview 2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview Oregon FIRST Robotics
 
FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013Oregon FIRST Robotics
 
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinarOregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x172013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x17Oregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 42013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 4Oregon FIRST Robotics
 
2013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 32013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 3Oregon FIRST Robotics
 

Más de Oregon FIRST Robotics (20)

Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3Oregon FIRST PNW Championship Poster 2014 3
Oregon FIRST PNW Championship Poster 2014 3
 
Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2Oregon FIRST PNW Championship Poster 2014 2
Oregon FIRST PNW Championship Poster 2014 2
 
Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1Oregon FIRST PNW Championship Poster 2014 1
Oregon FIRST PNW Championship Poster 2014 1
 
Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4Oregon FIRST PNW Championship Poster 2014 4
Oregon FIRST PNW Championship Poster 2014 4
 
First fare 2013 business plan presentation
First fare 2013   business plan presentationFirst fare 2013   business plan presentation
First fare 2013 business plan presentation
 
First fare 2013 competitive analysis presentation
First fare 2013   competitive analysis presentationFirst fare 2013   competitive analysis presentation
First fare 2013 competitive analysis presentation
 
First fare 2013 website design for frc teams
First fare 2013   website design for frc teamsFirst fare 2013   website design for frc teams
First fare 2013 website design for frc teams
 
First fare 2013 pneumatics 2013
First fare 2013   pneumatics 2013First fare 2013   pneumatics 2013
First fare 2013 pneumatics 2013
 
FIRSTFare 2013 overview of electronics-2014
FIRSTFare 2013   overview of electronics-2014FIRSTFare 2013   overview of electronics-2014
FIRSTFare 2013 overview of electronics-2014
 
First fare 2013 manipulators firstfare 2013
First fare 2013   manipulators firstfare 2013First fare 2013   manipulators firstfare 2013
First fare 2013 manipulators firstfare 2013
 
First fare 2013 district model overview 2014
First fare 2013   district model overview 2014First fare 2013   district model overview 2014
First fare 2013 district model overview 2014
 
First fare 2013 crowdfunding 101 (beginner) with notes
First fare 2013   crowdfunding 101 (beginner) with notesFirst fare 2013   crowdfunding 101 (beginner) with notes
First fare 2013 crowdfunding 101 (beginner) with notes
 
First fare 2013 basic-labview
First fare 2013   basic-labviewFirst fare 2013   basic-labview
First fare 2013 basic-labview
 
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams2013 Oregon Dept. of Education Grant Overview for FIRST Teams
2013 Oregon Dept. of Education Grant Overview for FIRST Teams
 
2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview 2013 Oregon Dept. of Education FIRST Grant Overview
2013 Oregon Dept. of Education FIRST Grant Overview
 
FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013FIRST Robotics Oregon Dept Of Education Grants - 2013
FIRST Robotics Oregon Dept Of Education Grants - 2013
 
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar2013 FRC Autodesk Oregon Regional -- All you need to know webinar
2013 FRC Autodesk Oregon Regional -- All you need to know webinar
 
2013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x172013 Autodesk Oregon Regional Poster.11x17
2013 Autodesk Oregon Regional Poster.11x17
 
2013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 42013 Autodesk Oregon Regional Poster - 4
2013 Autodesk Oregon Regional Poster - 4
 
2013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 32013 Autodesk Oregon Regional Poster - 3
2013 Autodesk Oregon Regional Poster - 3
 

Último

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 

Último (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 

First fare 2011 lab-view overview

  • 1. Dennis C. Erickson ~ Senior Mentor for Teams 1510 and 2898 1  
  • 2. Working  with  National  Instrument’s   Hardware  and  Software     Specifically:   Software  ~  LabVIEW   Hardware  ~  cRIO   2  
  • 3. LabVIEW   VI  =  Virtual  Instrument   EW  =  Engineering  Workstation     VI  =  Virtual  Instrument  or  in  other  languages  “Routine”,   SubVI  =  Subroutine   3  
  • 4. • Graphical  Interface  (Not  Text  Based)   • Dataflow  (All  inputs  must  be  updated  before  VI  –  Virtual   Instrument  –  executes)   • Self  Documenting  (You  know  what  the  code  does)     4  
  • 5. • Portable  Code   (VIs  are  easily   reused)   • Advanced  set  of   diagnostic  tools;   probes,  execution   highlighting,   error  reporting,   ability  to   surround  the   code  with  a   “virtual  world   simulation   environment”  for   testing.   5  
  • 6. • Perfectly  tailored  for  NI  hardware   • Automatically  handles  multiple  cores     and  threads   • Easily  compiles  to  RT  (Real-­‐time)   Operating  Systems  and  FPGA  (Field   Programmable  Gate  Arrays)  used  in   the  cRIO  processor   6  
  • 7. While  it  is  entirely  possible  to   win  a  contest  with  a  robot  that  is   “bare  bones”  the  better  goal  is  to   learn  how  to  do  things  along  the   way  that  may  or  may  not  be  used.       7  
  • 9. This  section  offers  a  brief  short  course  on   the  language  LabVIEW     9  
  • 10. Launch   LabVIEW  to   create  a  new   project   10  
  • 11. Name  your   project  .   You  might  for   example  use  your   team  name  and   year  in  the  name:   i.e.,  “Team  1510  for   2010  Robot   Project”     Be  sure  that  you   enter  your  team  IP   in  the  following   format:   11  
  • 12. Adding  a  VI  to   your  project:   If  its  new,  then   right-­‐click  to  “VI”   and  select  and   name  it.     If  adding  an   existing  one  select   the  menu  item   “Add”.   12  
  • 13. Some  example  controls  and  indicators  for  the  Front  Panel   Numerical  Controls   and  Indicators   13  
  • 14. Some  example  controls  and  indicators  for  the  Front  Panel   Booleans   14  
  • 15. Some  example  controls  and  indicators  for  the  Front  Panel   Strings  and  Paths   15  
  • 16. Some  example  controls  and  indicators  for  the  Front  Panel   Arrays,  Clusters,   Matrices  and   Dialog  Boxes   16  
  • 17. Some  example  controls  and  indicators  for  the  Front  Panel   List  Boxes,  Tables   and  Trees   17  
  • 18. Some  example  controls  and  indicators  for  the  Front  Panel   2D,  3D   Digital   Charts  and   Graphs  and   Special  Plots   18  
  • 19. Some  example  controls  and  indicators  for  the  Front  Panel   Rings  and  Enums   19  
  • 20. Some  example  controls  and  indicators  for  the  Diagram   Structures   20  
  • 21. Some  example  controls  and  indicators  for  the  Diagram   Arrays   21  
  • 22. Some  example  controls  and  indicators  for  the  Diagram   Structures,  Classes   and  Variants   22  
  • 23. Some  example  controls  and  indicators  for  the  Diagram   Numerics,  Booleans   and  Files   23  
  • 24. Some  example  controls  and  indicators  for  the  Diagram   Timing,  Dialog  Boxes,   Waveforms,  etc,  etc   Hundreds  of  other   functions   24  
  • 25. Testing  the  Joystick  Power  Function  VI   Task:     Test  the  VI  with  1000   simulated  Joystick   positions  from  0  to  +1  to  0   to  -­‐1  (White  Line)  and   create  9  plots  with  the   following  function:     Plotn  =  (motor  speed)m     Where:     Plotn  =  a  series  of  plots   (9  total)   Motor  speed  =  voltage   input  to  the  motor  (from  1   to  -­‐1)   m  =  power  function  (use   to  alter  the  forward   sensitivity  of  the  Joystick)     25  
  • 26. This  discussion  touches  on  the  following   principle  areas:     • The  cRIO  hardware  (The  Brain)   • The  Sensors,  Motors  and  Actuators  that  can  be  used     • The  DS  Drive  Station  (Link  from  the  User  to  the  robot’s  brain)     26  
  • 27. cRIO  –  Compact  Real-­‐time  Input/Output     A  PAC  (Programmable  Automation  Controller)  which  is  an  industrial   controller  that  is  used  in  advanced  systems  incorporating  software   capabilities  such  as  control,  communication,  data  logging,  and  signal   processing  requiring  rugged  hardware  performing  logic,  motion,  process   control,  and  vision.  For  FIRST  applications,  ideal  for  robot  building.   A  fully  populated   cRIO  example   27  
  • 28. Real-­‐time  operating  system   cRIO  connected   to  a  Laptop   FPGA  –  Field  Programmable  Gate  Array   located  under  the  cRIO  chassis   28  
  • 29. The  following  Example  code  shows  how  to  create  an  environment  to  test   and  calibrate  VI  modules.  In  this  case  we  are  testing  the  Camera  Servo   motors   Next  run  the  test  in  a  While  loop.  Note  the  Loop   First  Initialize  the  test  (note   Sweep  constant  which  defines  the  loop    cycle   the  “Data  Dependency”  wire)   (20ms).  Here  the  loop  is  stopped  using  the  Stop   Test?  command     Finally  End  the  test  by  closing  all   references,  etc.  Again  note  the  Data   Dependency  and  use  of  a  Frame   structure  as  the  SubVI  has  no  wired   input  to  use   29  
  • 30. The  following  slides  start  with  a  State  Chart  to  show  what  the  State   Diagram  will  do.  The  next  slides  show  the  State  Diagram  created.   30  
  • 31. State  diagrams  are  extremely  useful  in  creating  small  or  large  applications.   Since  LabVIEW  is  a  DataFlow  language,  this  approach  adds  to  the   robustness  of  the  application   The  Application  starts  by  selecting  the  Initialize  Test  State  (case).  Note  that  we  check  for   errors  and  if  the  Stop  Test?  Button  is  pressed.  Note  that  the  Enum  (far  left  constant  control)   has  3  possible  states;  Initialize  Test,  Run  Test  and  End  Test   31  
  • 32. These  slides  show  a  typical  State  Diagram  that  tests  camera   servos.  Note  the  inputs  from  the  joystick  and  a  smoothing   control  to  test  filtering.   Next  if  no  errors,  run  the  While  loop  until  an  error  happens  or   the  Stop  Test?  Button  is  pressed  the  go  to  the  next  State   32  
  • 33. One  of  the  interesting  features  of  the  State  Diagram  is  confining  the   application  code  to  one  screen,  thus  self  documenting  code   Finally,  there  has  been  an  error  or  the  Stop  Test?  Button  has   been  pressed  so  end  the  test  by  closing  references,  etc.  Note  that   now  the  Boolean  constant  is  now  TRUE  which  stops  the  loop   33  
  • 34. Dennis C. Erickson - dcerickson1@comcast.net