View Single Post
  #5   Spotlight this post!  
Unread 06-01-2009, 01:06
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Labview SubVI return and continue looping

LabVIEW runs highly parallel. If you look at the Basic Robot Main.vi you can see 3 loops, 2 of them are infinite.

The first one does the DS comms and motor control and handles auto and all that jazz. It's where you put most of your code (and subVI calls)

Below that is the camera code. If you want to access camera data in other loops, you have to use global variables

The loop below -that- is a timer loops. It is an infinite loop with a wait timer so it only executes the commands in it depending on what the timer value is. Again, to get data from this loop you have to use global variables.

Modifying global variables from multiple VIs is tricky.. race conditions are also bad, so you must be careful.
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
Reply With Quote