Go to Post Dave: THEY'RE NOT DOLLIES THEY'RE MY FRIENDS! - Dorienne [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-12-2008, 18:00
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,045
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
2009 Control System LabVIEW Tips and Pitfalls

Please contribute your BEST tips and tricks relating to LabVIEW - detailed descriptions, how to's, etc. here in this thread. These should be topics that are NOT [yet] thoroughly covered in the official documentation.

If you've documented this information elsewhere, feel free to post links to it.

Please keep discussion to a minimum here - just the facts, please. If information is disputed, please handle via PM/moderator for editing and correction. Let's leave the thread free of clutter. It's harder for teams to search CD when all the information is scattered across numerous threads and buried within countless "help me - I'm lost" discussions.

Thanks.

My contribution is.....the collected contributions of others. See the Software page on http://controlsystem.neofra.com for more information.

Here's a cross link to the equivalent Wind River C/C++ thread.

Depending on how well we all follow this standard and contribute to this thread, perhaps it will be worthy of a sticky some day.
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner

Last edited by Travis Hoffman : 19-12-2008 at 18:07.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-12-2008, 14:46
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: 2009 Control System LabVIEW Tips and Pitfalls

Things I learned the hard way!

Starting out....create your own default template
  • Create new Advanced Project
  • Create new Dashboard Project in a ‘Dashboard’ sub-folder
  • Combine all into single project by dragging the Dashboard folders to ‘My Computer’ in the Advanced Project. Now all your project files are in 1 place!
  • Don’t change RobotMain.vi – you can break it!
  • Don’t code inside the subvi’s making up the TeamCode….simply create subvi’s referring to your Teleop code, your Autonomous Code, etc. Do this by ‘Save As’ ‘Open Additional Copy’ and create your name, e.g. ‘TeamxxxTeleop.vi’. Put them in the appropriate spots in the TeamCode Vi’s. Be sure and wire the appropriate connections and clusters to your new vi.
  • As you make up the subvi’s, edit the entries in Vi Properties by right-clicking the icon in the upper right. Document it’s purpose and edit history. Also, make a unique icon the first time you save it.
Cleaning up ‘Begin.vi’.

It should be the goal of every vi to be able to visualize the entire vi from a window without scrolling.To that end, you can begin by cleaning up Begin.vi.
  • Open the ‘TypeDefs’ folder and open RobotData.ctl
  • Open a new vi (‘File’à’New Vi’)
  • On the Front Panel, right-click..select ‘Select a Control’ and double-click RobotData.ctl and place it on the Front Panel
  • Go to the Block Diagram (Ctrl-E)
  • Right-click the wiring stub and ‘CreateàIndicator’…go back to the Front Panel
  • Double-click the icon in the upper right and make your own icon
  • If you have a standard Team icon background, paste that in then make sure it says ‘Robot Data ‘
  • Then right-click the icon…’Show Connector’
  • Click the upper right small box and then the indicator image of the control. Make sure the wiring ‘sticks’.
  • Edit the icon so it says RobotData.
  • Save the vi as ‘RobotData.vi’
  • Repeat the process for the PeriodicTaskData Type Def
  • Now open Begin.vi and place the 2 vi’s you just created near the ‘bundle cluster’ vi’s. You get rid of the large constants that are there and as you add DeviceDefinitions to the TypeDefs, they will be updated without making an unsightly block diagram.
Adding Device Definitions to the TypeDefs.

1. Open the file RobotData.ctl. Make the cluster bigger to accommodate the new type defs you will be placing inside.
2. On the block diagram of Begin, right-click and select the WPI Robotics Library. Pin it down. The go through and select ‘Open’ vi’s for each of the devices and sensors you will be using.
3. As you open each ‘Open.vi’, right-click the edge of the DevRef for that device. Select ‘Open Type Def’. Now, click on the border of the cluster until the entire TypeDef is included. Ctrl-C or drag the selected type def into the RobotData type def until it is inside the cluster (remember I said to make the cluster bigger?). Make sure it is not overlapping another type def.
4. Make a unique name for each DeviceDef you have multiples of. Do this by editing that type def’s label. This is essential for you to identify which motor or sensor you will be wiring to.
5. You can group similar items, or related groups of items, by creating blank clusters on the RobotData type def before placing the new type defs inside of it. This is useful when you are unbundling by name. For example, put 4 references to your Joysticks together, even if you don’t think you will use them all.
6. After you have done this, go to ‘File’ and ‘Apply Changes’ before saving. You can add more motors, sensors and other devices at any time.
7. Now you can go into Begin.vi, put your cursor on the lower edge of the bundle-by-name vi and enlarge it…you will see the new type defs you have just added! If you don’t, simply right-click and ‘Select Item’…find the type def and choose ‘All elements’. Now, place an ‘Open Gyro.vi.’ (if you added a Gyro type def), and wire it’s cluster to the bundle vi. Be sure to select a channel to sample.
8. Repeat for all your other devices. Try to line up and arrange your vi’s so they make sense and don’t leave a mess of spaghetti!
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #3   Spotlight this post!  
Unread 20-12-2008, 20:25
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: 2009 Control System LabVIEW Tips and Pitfalls

Here's a post of mine about camera tracking: http://www.chiefdelphi.com/forums/sh...17&postcount=9
Reply With Quote
  #4   Spotlight this post!  
Unread 22-12-2008, 11:25
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: 2009 Control System LabVIEW Tips and Pitfalls

Here's a post about using the camera without the cRio.

http://www.chiefdelphi.com/forums/sh...391#post786391
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: 2106's 2009 Control System Test and Dashboard wilsonmw04 Extra Discussion 10 01-01-2009 16:54
2009 Control System C++ Tips & Pitfalls heydowns Programming 1 19-12-2008 17:59
Should FIRST Release the 2009 Control System beta Libraries and information? Elliot Swart General Forum 24 01-10-2008 07:12
LabVIEW Training and new control system demonstration 10/17-10/19 in Frazier Park, CA Joe Ross NI LabVIEW 0 25-09-2008 13:25
2009 Control System Shinigami2057 FRC Game Design 86 19-05-2007 02:40


All times are GMT -5. The time now is 04:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi