View Single Post
  #9   Spotlight this post!  
Unread 21-12-2008, 23:45
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: I'm trying not to hate labview but...

Quote:
Originally Posted by JDNovak View Post
Then they unbundled the DefRefs in the Teleop .vi and inserted all the steering code before setting the speed of each motor. This is their second attempt to control the entire robot and it is beginning to make sense enough to be able to understand the layout even though teleop is over two screens high.
If your code is expanding past a reasonable screen size, then you probably need to start creating your own sub-vi's.

Look at your code and see where you have duplicated code that just varies by a specific parameter (eg a pair of motor drives).

Take that code, select the common parts and then use EDIT/Create SubVI.

The code will cet condensed out into a sepparate file and all the wires that passed into the selected area will become connections on the new VI. Double click it and you will see the extracted code. DO a "Save as" and give it a good name. On the Front panel, double click the icon (top right corner) and edit you own graphic.

Now, go back to the main block diagram and replace the other instances of that code with your own VI. Once you build your own VI, you'll never look back
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote