1 / 27

LabVIEW for FRC

LabVIEW for FRC. Doug Norman National Instruments January 6, 2012. Overview. Introduction to LabVIEW FRC edition of LabVIEW What’s new for FRC LabVIEW 2012. Part 1 - What is LabVIEW?. Speak G Graphical programming language Go with the flow Dataflow programming Easy writing

nero
Download Presentation

LabVIEW for FRC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LabVIEW for FRC Doug Norman National Instruments January 6, 2012

  2. Overview • Introduction to LabVIEW • FRC edition of LabVIEW • What’s new for FRC LabVIEW 2012

  3. Part 1 - What is LabVIEW? • Speak G • Graphical programming language • Go with the flow • Dataflow programming • Easy writing • Easy to learn • Powerful debugging tools

  4. LabVIEW Programs Are Called Virtual Instruments (VIs) • Each VI has2 Windows • Front Panel • User Interface (UI) • Controls = Inputs • Indicators = Outputs • Block Diagram • Graphical Code • Data travels on wires from controls through functions to indicators • Blocks execute by Dataflow

  5. LabVIEW Nodes • While loop • For loop • Boolean logic • PID Control • Arrays • Signal processing • Mathematics • Timing

  6. LabVIEW Types • Floating point • Integer • Boolean • String • Array – note wire thickness • Cluster

  7. LabVIEW Tasks • Multiple tasks in parallel • Data flow still applies • Loops 1, 2, and 3 will run • Loop 4 runs after 3 stops

  8. Debugging Techniques • Finding Errors • Execution Highlighting • Probes Click on broken Run button. Window showing error appears. Click on Execution Highlighting button; data flow is animated using bubbles. Values are displayed on wires. Right-click on wire to display probe and it shows data as it flows through wire segment. You can also select Probe tool from Tools palette and click on wire.

  9. Context Help Window • Help»Show Context Helpor press <Ctrl+H> • Hover cursor over object to update window • Additional Help • Right-Click on the VI icon and choose Help, or • Choose “Detailed Help.” on the context help window

  10. Part 2 - FRC Version of LabVIEW • CompactRIO with custom FPGA image • Vision and Robotics palettes • Custom Getting Started Window • Wizards to create robot and dashboard code • FRC specific examples • FRC specific tutorials

  11. CompactRIO with Custom FPGA (note wrong module order) • Custom FPGA image for specific I/O modules • Analog, digital, and solenoid modules • Read sensors, control motors and actuators

  12. FRC Vision and Robotics Palettes • Vision – manage and analyze images • WPI Robotics – Robot Drive, Sensors, Actuators, I/O, Driver Station, Camera, Communications, Utilities. This contains most of what you will use to program your robot.

  13. Custom Getting Started Window

  14. FRC Wizards for Robot and Dashboard

  15. FRC Specific Examples

  16. Part 3 - What’s new for FRC LabVIEW 2012 • Getting Started Window • cRIO Imaging Tool • Axis Camera Setup Tool • Driver Station • Dashboard • Examples • Tutorials • Thumb Drive Installer • Based on LabVIEW 2011 • Supports NI cRIO-FRC II • Faster RT deployment • Driver Station VIs • Camera VIs • Compressor VIs

  17. NI Software on a Thumb Drive • NI LabVIEW for FRC installs from a thumb drive • Extra 3.5 GB partition for team use

  18. New Palette VIs • Get Robot Battery Voltage • Report Robot Code State • Kinect VIs • Camera Loop VIs • Compressor Loop VI

  19. Getting Started Window – Utilities Page

  20. cRIO Imaging Tool • Works for both: • NI cRIO-FRC • NI cRIO-FRC II • Same image for both • Shows installed modules • cRIO switches: • Read NI cRIO-FRC • Read/Write NI cRIO-FRC II

  21. Axis Camera Setup Tool • Connection choice • Directions • Troubleshooting

  22. Driver Station • Charts tab – performance and logging • Log Viewer – C:\Program Files\FRC Driver Station • Driver Station Log File Viewer.exe • Kinect Status • Space bar = E-Stop

  23. Dashboard • Kinect Skeleton Tab – displays skeleton image • Camera Image Tab – now uses mjpeg file type

  24. New Examples • EZ1 MB1010 Sonar – Analog • EZ1 MB1010 Sonar – Digital • CAN Motor • CAN Speed Control • CAN Tank Drive • CAN Position Control • CAN Current Control

  25. Tutorials • Set up cRIO • Set up Axis Camera • Set up Robot Radio • Develop Robot Project • Editing Team Code • Custom Dashboard • Integrating Examples • Integrating Vision • CAN Jaguar

  26. Conclusion • LabVIEW is easy to learn yet very powerful • Many custom VIs, examples and tools for FRC • New and improved features for FRC 2012 • To learn more, visit ni.com/first Questions?

More Related