Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.

Similar presentations


Presentation on theme: "Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp."— Presentation transcript:

1 Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp. Mark.McLeod@ngc.com

2 Agenda Architecture Architecture Project from Scratch Project from Scratch Default Framework Default Framework –Basic –Advanced Typical Operations Typical Operations Mechanics of Downloading Mechanics of Downloading FRC Palette Overview FRC Palette Overview Download Programs & Test Download Programs & Test

3 2009 Control System Software (check periodically for latest update) Robot Programming Robot Programming –Wind River Workbench –LabVIEW PC Dashboard PC Dashboard –LabVIEW FRC cRIO Imaging Tool --Apply updates to the cRIO FRC cRIO Imaging Tool --Apply updates to the cRIO Setup Axis Camera --Create FRC user account Setup Axis Camera --Create FRC user account Vision Assistant –Play with camera vision Vision Assistant –Play with camera vision

4 Architecture Hardware Layers Hardware Layers –FPGA –PowerPC –Modules –Breakout Bumpers/Sidecar Software Layers Software Layers –FPGA code –vxWorks –WPILib –User Code in LabVIEW or C++

5 Project From Scratch Limited by lack of Robot Mode function, but works for Basic Teleop Create a vi Create a vi –Structure Open -> Loop -> Close Open -> Loop -> Close Create a project Create a project

6 Basic Tasks Solenoid control Compressor Driver Station Communication Watchdog

7 Drives Teleop Tank Drive Teleop Arcade Drive

8 Miscellaneous Driver Station Custom Inputs Button Toggle

9 Default Frameworks A Framework is required for full functionality Basic Basic –Basic Robot Main.vi –Drive loop –Camera loop –Periodic loop –Autonomous Independent.vi Advanced Advanced –Team Code Begin.vi Begin.vi Teleop.vi Teleop.vi Vision Processing.vi Vision Processing.vi Autonomous Iterative.vi or Autonomous Independent.vi Autonomous Iterative.vi or Autonomous Independent.vi Periodic Tasks.vi Periodic Tasks.vi

10 Modifying the Framework What’s Missing: Tank Drive Tank Drive –Drive loop or Teleop.vi Compressor & solenoid control Compressor & solenoid control –Compressor in periodic –Solenoid control in Drive loop or Teleop.vi Manipulator and other unique controls Manipulator and other unique controls –Their own loop or vi

11 Sample Autonomous LabVIEW Kills Autonomous Independent.vi at the end of autonomous mode

12 Downloading or Running a Project Run Run –Used to test & debug using your PC –Temporarily executes your code –Gone after a reboot –Can disable Downloaded code, so test reboot Download/Deploy Download/Deploy –As a stand-alone application –Must reboot to take affect

13 My Computer Target For programs that run on your PC For programs that run on your PC Dashboard template Dashboard template What it does What it does How to customize the default Dashboard How to customize the default Dashboard –DS Digital/Analog input display –Digital Sidecar PWMs, Relays, DIO –Analog/Solenoid

14 FRC-cRIO-358 (10.3.58.2) Target For Robot programs For Robot programs Build Specifications Build Specifications –Run as Startup –Build/Deploy

15 Cautions Set the cRIO as a LabVIEW environment Set the cRIO as a LabVIEW environment If you get conflict messages when “Running”, then the formerly deployed code will execute on reboot If you get conflict messages when “Running”, then the formerly deployed code will execute on reboot Development is still underway, so expect the process and behavior to change somewhat Development is still underway, so expect the process and behavior to change somewhat Careful when relocating LabVIEW projects due to relative directory paths. Careful when relocating LabVIEW projects due to relative directory paths. Examples are not setup to download as stand-alone applications, but “Run” works Examples are not setup to download as stand-alone applications, but “Run” works Must use delay in master While loop to avoid running as fast as possible and sucking up the CPU Must use delay in master While loop to avoid running as fast as possible and sucking up the CPU Must use WATCHDOG as of Update 2 Must use WATCHDOG as of Update 2 “Run” must be done from RobotMain.vi “Run” must be done from RobotMain.vi

16 FRC Palette Overview WPILib WPILib –Robot Drive –Sensors –Actuators –I/O –Driver Station –Camera –Communications –Utilities FIRST Vision FIRST Vision –Image Management –Intensity Measurement –Particle Analysis –Image Enhancement –Image Conversion –Display Interaction

17 FRC WPI Palettes Robot Drive

18 FRC WPI Palettes Sensors

19 FRC WPI Palettes Actuators

20 FRC WPI Palettes I/O

21 FRC WPI Palettes Driver Station

22 FRC WPI Palettes Camera

23 FRC WPI Palettes Communications

24 FRC WPI Palettes Utilities

25 FIRST Vision Palettes

26 Programming Palettes

27 Where to Find Further Information NI FIRST forum: http://decibel.ni.com/content/community/ first NI FIRST forum: http://decibel.ni.com/content/community/ first http://decibel.ni.com/content/community/ first http://decibel.ni.com/content/community/ first Video Tutorials Video Tutorials –http://decibel.ni.com/content/docs/DOC-2511 http://decibel.ni.com/content/docs/DOC-2511 –http://labviewzone.blip.tv http://labviewzone.blip.tv –http://www.lvmastery.com/tipjar2008-12-12 http://www.lvmastery.com/tipjar2008-12-12 –http://first.wpi.edu/FRC/contro876.html http://first.wpi.edu/FRC/contro876.html

28 Presentation slides at: Presentation slides at: Team358.org Team358.org Questions/Help please email Questions/Help please emailMark.McLeod@ngc.com


Download ppt "Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp."

Similar presentations


Ads by Google