LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wait for the digital signal

Is there like "wait for the panel activity" in digital signal, "wait for the digital signal goes up" etc. ?
Or is it bad to make it with sequence structure and inside of first sequence use while loop?
0 Kudos
Message 1 of 4
(2,397 Views)
If you need to wait for a digital signal before continuing on with your program, the best way is to have a while loop that continuously reads the signal and stops the loop when the signal goes high. You can put this loop in the first frame of a sequence, or you can wire an output from the loop (like error out from the device read vi) into your next step. Be sure to put a delay (100mSec) in your loop so that the loop does not hog CPU time.
- tbob

Inventor of the WORM Global
Message 2 of 4
(2,393 Views)
Thank you for your answer.
Second thing is that how much it makes charge to computer if i have like 5 different waiting loops at the same time?
0 Kudos
Message 3 of 4
(2,383 Views)
As long as each loop has some time delay, having 5 loops won't make any noticable difference.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 4
(2,374 Views)