2010 LabVIEW Beginner Workshop October 9, 2010 Hauppauge High School SPBLI – LI FIRST Mark McLeod Hauppauge Team 358 Northrop Grumman Corp.
Agenda Advanced Glimpse Advanced Glimpse Default Framework Default Framework –Begin.vi –Finish.vi –Teleop.vi –Autonomous Independent.vi Adding a Joystick Adding a Joystick Teleop Program Teleop Program Autonomous Program Autonomous Program
Advanced Glimpse Flywheel Tachometer Example WPI Robotics Library->DriverStation->Joystick WPI Robotics Library->Actuators->MotorControl PID Programming->Timing
Framework The essential elements every FRC robot program requires are: Communications with the Driver Station Recognizing and processing the different competition modes Autonomous operations Teleop driver controls Primary files are: Begin.vi Finish.vi Teleop.vi Autonomous Independent.vi
Adding A Joystick Begin.vi – All device opens go in here Begin.vi – All device opens go in here –Copy/paste existing code –Highlight existing code, hold Cntl, hold left-click and drag to new spot. Release click before Cntl. –Add from Palettes Expand error array & wire new joystick Expand error array & wire new joystick Finish.vi – All devices get closed here Finish.vi – All devices get closed here
Teleop Program Remove example code Remove example code Replace Arcade Drive with Tank Drive Replace Arcade Drive with Tank Drive Add use of new joystick Add use of new joystick
Autonomous Program Remove example default code Remove example default code Add Flat Sequence Structure & additional Frames Add Flat Sequence Structure & additional Frames Add Tank Drive commands and Watchdog Timing Delays Add Tank Drive commands and Watchdog Timing Delays
Contacts Presentation slides/Step-by-step walkthrough/project code Presentation slides/Step-by-step walkthrough/project code at: Team358.org Under Workshops at: Team358.org Questions/Help please Questions/Help please