what’s new in labview frc 2010

18
1

Upload: orla-spence

Post on 02-Jan-2016

51 views

Category:

Documents


2 download

DESCRIPTION

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. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: What’s New in LabVIEW FRC 2010

1

Page 2: What’s New in LabVIEW FRC 2010

2

What’s New in LabVIEW FRC 2010

Doug Norman & Stephanie BriertyNational Instruments

January 8, 2010

Page 3: What’s New in LabVIEW FRC 2010

3

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

Page 4: What’s New in LabVIEW FRC 2010

4

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

Page 5: What’s New in LabVIEW FRC 2010

5

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

Page 6: What’s New in LabVIEW FRC 2010

6

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

Page 7: What’s New in LabVIEW FRC 2010

7

Example Wiring Diagrams in ALL Examples

Page 8: What’s New in LabVIEW FRC 2010

8

Getting Started Window• View>>Getting Started Window…• Access

Examples Robot and Dashboard project wizards Help, Guides, etc.

• Prompts you to update your software

Page 9: What’s New in LabVIEW FRC 2010

9

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

Page 10: What’s New in LabVIEW FRC 2010

10

WPI Robotics Library Improvements

• RefNum Registry Set and Get• Driver Station – Write User Message• Driver Station – Set Dashboard Data• Driver Station – Enhanced I/O

Page 11: What’s New in LabVIEW FRC 2010

11

RefNum Registry

• In most palettes• Register RefNum by name once• Get RefNum anywhere needed• Avoids error of reopening an

existing RefNum

Page 12: What’s New in LabVIEW FRC 2010

12

Using RefNum Registry Set and Get

• Set once using unique name (you pick)• Get multiple times in Teleop, Autonomous, etc.

using same unique name

Set in Begin.vi

Get in Teleop.vi

Page 13: What’s New in LabVIEW FRC 2010

13

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

Page 14: What’s New in LabVIEW FRC 2010

14

Driver Station – Set Dashboard Data VIs

• Flatten data to string• Send data to dashboard• Select high or low priority

Set High Priority Dashboard Data.vi

Set Low Priority Dashboard Data.vi

High Priority > Errors > Low Priority

Page 15: What’s New in LabVIEW FRC 2010

15

Using the Set Dashboard Data VIs

• Note - only use one instance of each VI

Set by robot inBuild Dashboard Data.vi

Cluster of data for dashboard

Flatten To String

Read by dashboard inDashboard Main.vi

Receive DS Packet.vi

Page 16: What’s New in LabVIEW FRC 2010

16

Driver Station – Enhanced I/ODriver Station

Compatibility I/OEnhanced I/O

Page 17: What’s New in LabVIEW FRC 2010

17

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

Page 18: What’s New in LabVIEW FRC 2010

18

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?