180 likes | 385 Views
What’s New in LabVIEW FRC 2010. Doug Norman & Stephanie Brierty National Instruments January 8, 2010. LabVIEW FRC 2010 Overview. Install and licensing is easier Auto Error Handling More examples – with wiring diagrams Getting Started Window Project Wizards - templates WPI Library palette.
E N D
What’s New in LabVIEW FRC 2010 Doug Norman & Stephanie Brierty National Instruments January 8, 2010
LabVIEW FRC 2010 Overview • Install and licensing is easier • Auto Error Handling • More examples – with wiring diagrams • Getting Started Window • Project Wizards - templates • WPI Library palette
LabVIEW FRC 2010 Install and Licensing • Install LabVIEW FRC 2010 DVDs in kit • Download and install MANDATORY update from web • Link on Getting Started Window • Now one license for all NI software installed
Auto Error Handling • You can leave error terminals unwired • Errors will automatically get passed to Driver Station • See Diagnostics tab • Clear errors • View error log files • Duplicate errors are filtered and removed
More Examples • Motor with Encoder • Accelerometer Angle • Potentiometer with DS • Joystick Button Latching • Servo • Magnetic Encoder with Motor • Ultrasonic • Compressor with Cylinder • ADXL345 I2C Accelerometer • ADXL345 SPI Accelerometer
Getting Started Window • View>>Getting Started Window… • Access • Examples • Robot and Dashboard project wizards • Help, Guides, etc. • Prompts you to update your software
Project Wizards • Robot Project • One architecture – easier for teams to help each other • Will have some game specific code • Dashboard Project • Simplified – easier to edit • Will have some game specific code
WPI Robotics Library Improvements • RefNum Registry Set and Get • Driver Station – Write User Message • Driver Station – Set Dashboard Data • Driver Station – Enhanced I/O
RefNum Registry • In most palettes • Register RefNum by name once • Get RefNum anywhere needed • Avoids error of reopening an existing RefNum
Using RefNum Registry Set and Get Set in Begin.vi • Set once using unique name (you pick) • Get multiple times in Teleop, Autonomous, etc. using same unique name Get in Teleop.vi
Driver Station – Write User Message.vi • Writes to User Messages control on Driver Station • Available last year, but didn’t get installed • Up to 6 lines, 21 characters per line • One line per instance
Driver Station – Set Dashboard Data VIs Set Low Priority Dashboard Data.vi • Flatten data to string • Send data to dashboard • Select high or low priority Set High Priority Dashboard Data.vi High Priority > Errors > Low Priority
Using the Set Dashboard Data VIs Set by robot in Build Dashboard Data.vi Flatten To String Cluster of data for dashboard • Note - only use one instance of each VI Receive DS Packet.vi Read by dashboard in Dashboard Main.vi
Driver Station – Enhanced I/O Driver Station Enhanced I/O Compatibility I/O
Driver Station – Enhanced I/O • Set/Get Digital I/O (16) • Set/Get Digital Out HC (2) • Get Analog Input (8) • Set/Get Analog Output (2) • Get Buttons (6) • Set/Get LEDs (8) • Get Quadrature Encoders • Set/Get PWM Values (4) • Get Accelerometer (X,Y,Z) • Set/Get Digital Config • Get Touch Slider • Get Version Info Note – don’t mix and match with Compatibility I/O
Conclusions • Easier installation and activation • See live errors from robot • Get started faster with examples and wiring diagrams • Alerts for software updates • Improved templates • Expanded WPI Library palette Questions?