02-08-2011 04:31 PM
Hello all,
In part of this project I have to:
-wait for a specified delay
-turn on an output
-wait for a specified duration
-turn off the output
Actually, there may be 5 of these running at the same time, each in a subvi.
The code seemed pretty straightforward even to me, but the output never comes on. It appears that it wants to wait until the Duration has passed, which is of course too late.
Attached is an image of the obvious first try.
Knowing that shared variables can have a delay I added a while loop to ensure that it was on, but it still goes through the process without ever turning the output on.
I also replaced the Wait function with the Time Delay function with the same result.
Any ideas?
Paul
Solved! Go to Solution.
02-09-2011 04:32 PM
Never mind . My bad. The Duration got set to 0.