what’s new in labview frc 2010

Post on 02-Jan-2016

51 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

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

1

2

What’s New in LabVIEW FRC 2010

Doug Norman & Stephanie BriertyNational Instruments

January 8, 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

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

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

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

7

Example Wiring Diagrams in ALL Examples

8

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

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

• Prompts you to update your software

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

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

11

RefNum Registry

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

existing RefNum

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

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

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

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

16

Driver Station – Enhanced I/ODriver Station

Compatibility I/OEnhanced I/O

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

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?

top related