10-23-2005 06:14 PM
10-23-2005 07:39 PM
Your "loop distribution" does not make a lot of sense, because the only loop that will spin is the inner loop on the left. Once any of the two boolean conditions is true, the loop will stop, allowing completion of the left loop (it will spin exactly once). Now thw two inner loops on the right will start (think dataflow, they need to wait until data arrives on all inputs!), but they will stop after spinning exactly once. Now the big loop also stops.
All while loops except the innermost act exactly like single frame sequences, so why use while loops at all?? :o.
It seems unlikely that you want the loop structures this way. Should't there also be some code in the inner loop? You should at least place a small wait statement in it.
Anyway, to stop the VI after 3 minutes, you could place an event structure in paralell with only a timeout case.and wire a 3 minute timeout (180000ms) to it. Inside the event frame, write a TRUE to a local variable of either y or x.
If you want the while loops to run independently, they cannot have data dependency.
10-25-2005 11:18 PM