Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.

Slides:



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

Alpha Control System TheRobettes.com.
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.
Session Objectives: Review basic math for single swerve module
CENTURION™ (C4-SERIES) Erin Cox, Market Research Analyst, Natural Gas Production Controls - Presenter Sanjay Kumar, Market Research Specialist & Product.
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.
2010 KOP Control System Workshop January 16, 2010 Hauppauge High School SPBLI – LI FIRST Mark McLeod Hauppauge Team 358 Northrop Grumman Corp.
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
US First Kickoff 2014 Software Programming (And Control System) Daniel Kohn University of Memphis.
Using an FPGA to Control the Protection of National Security and Sailor Lives at Sea Brenda G. Martinez, Undergraduate Student K.L. Butler-Purry, Ph.D.,
National Instruments FRC Robot Modeling Toolkit Topics: The Big Picture: “The V-Digram Design Process” Applying the “V” to Robotics Introduction to LabVIEW.
Part 1: Introduction FRC Introduction  FRC 2907 since 2008  Each area of the robot has a team assigned  The Electronics team is headed this year.
ALFRED THOMPSON MICROSOFT ACADEMIC TEAM Kinect for FRC 2012.
Introduction to LabVIEW 8.5
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.
Department of Electrical and Computer Engineering Texas A&M University College Station, TX Abstract 4-Level Elevator Controller Lessons Learned.
Today’s Agenda New Hardware Setup of RoboRIO
                      Part IV Reading Power.
2015 FRC Control System = MOL = DUK Power Distribution Board Volts -12 Volts (4) 40 amp Circuits (4) (6) 20/30 amp Circuits (6)
2009 Control System Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
2012 Beta Seminar 694 Software Engineering. Overview WPILib ▫Command-based programming ▫NetworkTables ▫SmartDashboard ▫Preferences ▫Laptop-based vision.
How to Use This Training Deck
Peripheral Interpreter consisting of Analyzers 'N Operators
Automated Industrial Wind Tunnel Controller By Daniel Monahan and Nick DeTrempe Advised by Dr. Aleksander Malinowski Customers are Dr. Scott Post and Dr.
Drivers Station 2010 Joe Ross Team /12/2009.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
US First Kickoff 2013 Software Programming (And Control System) Daniel Kohn University of Memphis.
E-LABORATORY PRACTICAL TEACHING FOR APPLIED ENGINEERING SCIENCES W O R K S H O P University of Oradea, Romania February 6, 2012 G E N E R A L P R E S E.
US First Kickoff 2012 Software Programming (And Control System) Daniel Kohn University of Memphis.
Common Rookie Blunders Kelvin Lin Team 4001 Programmer Yoan Holder Team 4001 Electrician.
LabVIEW Workshop September 26, 2009 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
The New FTC Platform (Connecting your legacy hardware)
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.
BEST Robotic, Inc. easyC Breakout Session By: Guy Chetrit Programming With easyC September 15, Copyright © 2012 BEST Robotics, Inc. All rights reserved.
Mentors Workshop Programming Sub-System Mark McLeod Team 358 Festo/Hauppauge H.S. F For I Inspiration and R Recognition of S Science and T Technology.
FTC New Platform Programming Workshop in Android Studio
Automated Industrial Wind Tunnel Controller By Daniel Monahan and Nick DeTrempe Advised by Dr. Aleksander Malinowski.
Beginner Programming Workshop Simona Doboli Assistant Professor Computer Science Department Hosftra University November.
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.
1. 2 FRC 2010 Robot and Dashboard Projects Doug Norman & Stephanie Brierty National Instruments January 8, 2010.
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.
2008 SBPLI/FIRST Programming Workshop Tom Boehm Patchogue Medford High School, Team 329 Motorola Inc. Mark McLeod Hauppauge High School Team 358 Northrop.
Introduction to LabVIEW 8.5
Design of the New Handy Board for Robotics Using the NI LabVIEW Embedded Module for ADI Blackfin Processor Fred Martin, Assistant Professor, Computer Science.
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.
Abstract A Structured Approach for Modular Design: A Plug and Play Middleware for Sensory Modules, Actuation Platforms, Task Descriptions and Implementations.
Advanced LabVIEW Topics Dustin Cruise. Who is this guy? Graduate Student in Mechanical Engineering at Purdue University Specialty Areas: Combustion Control.
1. LabVIEW and EPICS Workshop EPICS Collaboration Meeting Fall 2011.
Session 11 Intro to FRC API.
Cr yptonite robotics labview beta findings December 19, 2015.
Hardware/Software Co-Verification with RTOS Application Code Michael Bradley, Mentor Graphics Kainian Xie, Hyperchip Inc.
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.
For Official NASA Use Only
Wednesday NI Vision Sessions
INTRODUCTION TO JAVA PROGRAMMING FOR THE FIRST ROBOTICS COMPETITION JONATHAN DANIEL HEAD PROGRAMMER FERNBANK LINKS.
Introduction to Labview
2010 LabVIEW Intermediate Workshop
Training 11/11/16 Robot Code (WPILib).
Field Management System
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.
Presentation transcript:

Mechanics of LabVIEW Workshop January 10, 2009 Farmingdale State College SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.

Agenda Architecture Architecture Project from Scratch Project from Scratch Default Framework Default Framework –Basic –Advanced Typical Operations Typical Operations Mechanics of Downloading Mechanics of Downloading FRC Palette Overview FRC Palette Overview Download Programs & Test Download Programs & Test

2009 Control System Software (check periodically for latest update) Robot Programming Robot Programming –Wind River Workbench –LabVIEW PC Dashboard PC Dashboard –LabVIEW FRC cRIO Imaging Tool --Apply updates to the cRIO FRC cRIO Imaging Tool --Apply updates to the cRIO Setup Axis Camera --Create FRC user account Setup Axis Camera --Create FRC user account Vision Assistant –Play with camera vision Vision Assistant –Play with camera vision

Architecture Hardware Layers Hardware Layers –FPGA –PowerPC –Modules –Breakout Bumpers/Sidecar Software Layers Software Layers –FPGA code –vxWorks –WPILib –User Code in LabVIEW or C++

Project From Scratch Limited by lack of Robot Mode function, but works for Basic Teleop Create a vi Create a vi –Structure Open -> Loop -> Close Open -> Loop -> Close Create a project Create a project

Basic Tasks Solenoid control Compressor Driver Station Communication Watchdog

Drives Teleop Tank Drive Teleop Arcade Drive

Miscellaneous Driver Station Custom Inputs Button Toggle

Default Frameworks A Framework is required for full functionality Basic Basic –Basic Robot Main.vi –Drive loop –Camera loop –Periodic loop –Autonomous Independent.vi Advanced Advanced –Team Code Begin.vi Begin.vi Teleop.vi Teleop.vi Vision Processing.vi Vision Processing.vi Autonomous Iterative.vi or Autonomous Independent.vi Autonomous Iterative.vi or Autonomous Independent.vi Periodic Tasks.vi Periodic Tasks.vi

Modifying the Framework What’s Missing: Tank Drive Tank Drive –Drive loop or Teleop.vi Compressor & solenoid control Compressor & solenoid control –Compressor in periodic –Solenoid control in Drive loop or Teleop.vi Manipulator and other unique controls Manipulator and other unique controls –Their own loop or vi

Sample Autonomous LabVIEW Kills Autonomous Independent.vi at the end of autonomous mode

Downloading or Running a Project Run Run –Used to test & debug using your PC –Temporarily executes your code –Gone after a reboot –Can disable Downloaded code, so test reboot Download/Deploy Download/Deploy –As a stand-alone application –Must reboot to take affect

My Computer Target For programs that run on your PC For programs that run on your PC Dashboard template Dashboard template What it does What it does How to customize the default Dashboard How to customize the default Dashboard –DS Digital/Analog input display –Digital Sidecar PWMs, Relays, DIO –Analog/Solenoid

FRC-cRIO-358 ( ) Target For Robot programs For Robot programs Build Specifications Build Specifications –Run as Startup –Build/Deploy

Cautions Set the cRIO as a LabVIEW environment Set the cRIO as a LabVIEW environment If you get conflict messages when “Running”, then the formerly deployed code will execute on reboot If you get conflict messages when “Running”, then the formerly deployed code will execute on reboot Development is still underway, so expect the process and behavior to change somewhat Development is still underway, so expect the process and behavior to change somewhat Careful when relocating LabVIEW projects due to relative directory paths. Careful when relocating LabVIEW projects due to relative directory paths. Examples are not setup to download as stand-alone applications, but “Run” works Examples are not setup to download as stand-alone applications, but “Run” works Must use delay in master While loop to avoid running as fast as possible and sucking up the CPU Must use delay in master While loop to avoid running as fast as possible and sucking up the CPU Must use WATCHDOG as of Update 2 Must use WATCHDOG as of Update 2 “Run” must be done from RobotMain.vi “Run” must be done from RobotMain.vi

FRC Palette Overview WPILib WPILib –Robot Drive –Sensors –Actuators –I/O –Driver Station –Camera –Communications –Utilities FIRST Vision FIRST Vision –Image Management –Intensity Measurement –Particle Analysis –Image Enhancement –Image Conversion –Display Interaction

FRC WPI Palettes Robot Drive

FRC WPI Palettes Sensors

FRC WPI Palettes Actuators

FRC WPI Palettes I/O

FRC WPI Palettes Driver Station

FRC WPI Palettes Camera

FRC WPI Palettes Communications

FRC WPI Palettes Utilities

FIRST Vision Palettes

Programming Palettes

Where to Find Further Information NI FIRST forum: first NI FIRST forum: first first first Video Tutorials Video Tutorials – – – –

Presentation slides at: Presentation slides at: Team358.org Team358.org Questions/Help please Questions/Help please