Presentation on theme: "Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922."— Presentation transcript:
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922
Introduction to LabVIEW FRC Edition of LabVIEW FRC Framework Tricks of the Trade Resources
Graphical Programming Language Data Flow Programming ◦ Go with the Flow! High Level
Each vi is made up of two windows Front Panel ◦ User Interface ◦ Indicator(output) ◦ Controls (Input) Block Diagram ◦ “code” ◦ Data travels in wires from controls thru functions to indicators ◦ Order of execution controlled by data flow
While Loop For Loop Boolean logic Arrays Math functions Timing File I/O PID Control Signal Processing FRC WPILib
Project Explorer o Like a table of contents of the project o Group like files o Build specifications o Deploy VI’s
Begin VI – Called once at beginning, to open I/O, initialize sensors and any globals, load settings from a file, etc. Autonomous Independent VI – Autonomous code placed here. Called once at startup and terminates on its own. TeleOp – Responds to Joystick input and other critical functions. Called every 20 ms.
Periodic Task VI – Non-critical functions placed here. Can have multiple loops. Called at startup and runs continuously. Finish VI - Closes all I/O references and save collected data. Called once at end of program. Robot Global Data VI – Repository of defined global variables.
LabVIEW is Polymorphic Race conditions Shift when copying or moving Ctrl drag mouse to make space Edit»Create SubVI Right-click terminal»Create Edit»Make Current Values Default
Ctrl-R: Run the VI Ctrl-E: Swap between front panel and block diagram Ctrl-H: Turn on context help Ctrl-B: Remove broken wires Ctrl-u: Clean up wires Ctrl-Z: Undo View»Navigation Window or Ctrl-Shift-N Tools»CompactRIO Imaging Tool… Tools»Setup Axis Camera Tools»Options