1. 2 FRC 2010 Robot and Dashboard Projects Doug Norman & Stephanie Brierty National Instruments January 8, 2010.

Slides:



Advertisements
Similar presentations
Apple Pi Robotics Logic System and Programming Basics 1 1.
Advertisements

Alpha Control System TheRobettes.com.
Additional Programming Concepts MVRT 2011 – 2012 Season.
US First Robotics Lab View Tutorials Jim Thomas Lawrence Berkeley National Laboratory Team 496 Port Jeff Powerhouse.
Robot Code MVRT 2010 – 2011 Season. Robot code controls the robot Robot Main.vi –Calls all the smaller SubVis Rules of programming the robot –Be careful.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 2 Virtual Instruments Read Bishop, Chapter 2. Lab #2 and Homework #2 due next week. Quiz #1 next week.
Based on LabVIEW 2011 Student Edition
TP4: S TATE M ACHINE D ESIGN P ATTERN  Definition  Infrastructure  Transition Code  Conclusion.
Session Objectives: Review basic math for single swerve module
Add and Use a Sensor & Autonomous For FIRST Robotics
Jeff Beltramo NHTI-Concord’s Community College FRC Team 1922.
1. 2 LabVIEW for FRC Doug Norman National Instruments January 6, 2012.
1. 2 FRC 2010 Driver Station Doug Norman & Stephanie Brierty National Instruments January 8, 2010 Thanks to Joe Ross – Team 330.
Programming and Electronics Training
Loops in LabVIEW (while,for and case)
Overview of New System Beta Team from Wilsonville 1425 Wilsonville Robotics – Code Xero 2550 Oregon City Robotics.
FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
1. 2 LabVIEW 2011 Versus 8.6 Doug Norman National Instruments January 6, 2012.
1 of 6 Parts of Your Notebook Below is a graphic overview of the different parts of a OneNote 2007 notebook. Microsoft ® OneNote ® 2007 notebooks are digital.
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 4 SubVIs  Read Bishop, Chapter 4.  Lab #4 and Homework #4 due next week.
How to Use This Training Deck
Drivers Station 2010 Joe Ross Team /12/2009.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
ME 392 ME January 2012 Week 3 Joseph Vignola.
Common Rookie Blunders Kelvin Lin Team 4001 Programmer Yoan Holder Team 4001 Electrician.
LabView Basics The Fighting Pi Controls Group. About LabView LabView is a highly adaptable programming GUI (Graphic User Interface) LabView compiles the.
Virtual Instrumentation With LabVIEW. Course Goals Understand the components of a Virtual Instrument Introduce LabVIEW and common LabVIEW functions Create.
EDU 271. Introduction to Microsoft Publisher  Microsoft Publisher helps you easily create, customize, and publish materials such as: newsletters, brochures,
Design of Bio-Medical Virtual Instrumentation Tutorial 3.
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
2009 FRC Control System Software Overview Dave Doerr, Mentor, Team 67 November 15, 2008.
FRC Robot Framework Labview Made Easy (er) For FIRST Robotics 1.
1. 2 LabVIEW Intro, Basics, Tips, Tricks Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
2010 LabVIEW Beginner Workshop October 9, 2010 Hauppauge High School SPBLI – LI FIRST Mark McLeod Hauppauge Team 358 Northrop Grumman Corp.
Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Part II Introduction to Robot Code. How to open a new FRC robot project 1.Open LabVIEW. 2.Click "FRC cRIO Robot Project" in the upper left section "New".
FRC Robot Programming 1.PID Continued 2.Downloading and Deploying Code 3.Program a 2012 Robot from Spec Basic code For FIRST Robotics.
Security Windows 2000 Richard Goldman © December 4, 2001.
Digital Electronics and Computer Interfacing Tim Mewes 4. LabVIEW - Advanced.
Part III Robot Drive. Robot Main.vi The main body of your code: accesses all of the other programs in your project A big loop! Do not add any more loops.
CS320n –Visual Programming More LabVIEW Foundations.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
Understanding The 2008 FRC Robot Controller Chris Gregory FRC1089 – Team Mercury
Session 12 Sensors and Timers. 3 Main Types of Robot Projects Command-Based Robot A more complicated project for more complicated robots Iterative Robot.
Advanced LabVIEW Topics Dustin Cruise. Who is this guy? Graduate Student in Mechanical Engineering at Purdue University Specialty Areas: Combustion Control.
LabVIEW Basics Dustin Cruise. Who is this guy? Graduate Student in Mechanical Engineering at Purdue University Specialty Areas: Combustion Control Systems.
Session 11 Intro to FRC API.
Teacher/Mentor Institute Using easyC David Dominguez June 2, 2015 Update Version.
Anritsu Automation Platform (AAP) AAP PC Connects to the system via IP connection (system switch) AAP was developed to add features that were requested.
First glance of robotics course (VPL) Young Joon Kim MSRDS First Beginner Course – STEP3.
Programming with LabVIEW Intro to programming and.
Digital Electronics and Computer Interfacing Tim Mewes 2. LabVIEW Basics part II.
Introduction to Labview Dawgma Team 1712 Bob Bellini, Paul Gehman.
VAFIRST LabVIEW Workshop 11/19/11 Presenters: Marin Kobin & Patrick Foley.
Creating Flexible, Script-Controlled Autonomous Software Example Explanation.
Get your software working before putting it on the robot! Example Explanation.
INTRODUCTION TO JAVA PROGRAMMING FOR THE FIRST ROBOTICS COMPETITION JONATHAN DANIEL HEAD PROGRAMMER FERNBANK LINKS.
Introduction to Labview
Document Generation QRG
Basics for Robotics Programming
Introduction to LabVIEW
Introduction to Team 294 Programming Concepts
Using Objects in Alice.
Note: before starting launch LabVIEW and the Example Finder, and do a palette search to have everything loaded and ready to go. IMPORTANT: Students will.
Programming - Buttons Intro to Robotics.
Programming - Buttons Intro to Robotics.
Custom Dashboards Quick Help Guide
Advanced LabViEW
Presentation transcript:

1

2 FRC 2010 Robot and Dashboard Projects Doug Norman & Stephanie Brierty National Instruments January 8, 2010

3 What You Will Learn How to create a Robot Project  The architecture  The important subVIs  How to add your own code  How to send data to the Dashboard How to create a Dashboard Project  How to display data sent from the Robot Want to learn from the master?

4 Start from the Getting Started Window View>>Getting Started Window… Project Wizards

5 FRC Robot Project Wizard Project name Project folder cRIO IP Address  Team number Click Finish

6 Robot Project Project will be saved and open Expand Team Code folder  Notice subVIs to edit Open Robot Main.vi Build Specifications  Where you build your exe to run on the robot

7 Robot Main.vi Begin.vi Autonomous Iterative.vi Teleop.vi Build Dashboard Data.vi

8 Robot Main.vi Vision Processing.vi Periodic Tasks.vi Start Communication.vi Disabled.vi Finish.vi

9 Begin.vi This is where you initialize everything Choose Autonomous Independent or Iterative Open VIs followed by RefNum Registry Set VIs

10 Autonomous Independent.vi Open from the project or from Begin.vi diagram (double-click) Enable code by changing Boolean constant to T Edit code in the True case

11 Autonomous Iterative.vi Does nothing if you chose Independent in Begin.vi Otherwise its code runs iteratively like Teleop.vi Should you use Autonomous Independent or Iterative?  Want a For Loop or While Loop? Use Independent

12 Teleop.vi Main code for driving robot Read joysticks, sensors, etc. Drive motors, actuators, etc. This is the VI you are most likely to edit

13 Build Dashboard Data.vi Currently sends back analog, digital, relays, PWM, and solenoid data You could add to this data You could remove it all and start from scratch Notice this uses Set Low Priority Dashboard Data.vi

14 Editing the Robot Code Suppose we want to add a gyro for direction In Begin.vi we need to add:  Open VI  Set Gain VI  RefNum Registry Set VI In Teleop.vi we need to add:  RefNum Registry Get VI  Get Angle VI

15 Sending Robot Data to the Dashboard We could edit Build DashBoard Data VI  Add our new data to the Dashboard Data cluster  Edit Dashboard Main VI (in Dashboard project)  Uses the Set Low Priority Dashboard Data VI Suppose we have important Teleop data  Use the Set High Priority Dashboard Data VI  Send gyro data directly from Teleop VI

16 FRC Dashboard Project Wizard Project name Project folder Click Finish

17 Dashboard Project Project will be saved and open Expand Helper VIs  Notice Receive DS Packet VI Open Dashboard Main.vi Build Specifications  Where you build your exe if you want to replace DS Dashboard

18 Editing the Dashboard Code If you edited Build DashBoard Data VI on robot  Use the Low Priority User Data string from Receive DS Packet VI on Dashboard Main VI If you used Set High Priority Dashboard Data VI on the robot (our Teleop VI example)  Use the High Priority User Data string from Receive DS Packet VI on Dashboard Main VI Either way use Unflatten From String primitive

19 Editing the Dashboard Code Receive DS Packet VI is part of Dashboard project Functions>>Numeric>>Data Manipulation  Flatten To String  Unflatten From String High Priority User Data

20 Conclusion Easily create and edit a Robot Project for robot code Quickly customize a Dashboard Project Pass live data from Robot to Dashboard More resources:  frcmastery.com  ni.com/first Questions?