LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wait(ms) functionality

Hi all,

if one wires a numerical constant A [ms] to the timer Wait(ms) does it mean that the current VI runs for A ms, or for A ms the VI passes the control to the processor to control other programs?

Thanks,
Dana
Message 1 of 3
(2,737 Views)
Yes, for A ms, the VI passes the control to the processor to control other programs.  This assumes your LabVIEW app. only has one thread (no parallel loops, etc.)


>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 3
(2,729 Views)
Actually, it means neither. The exact usage of the processor is determined by all kinds of things, not just wait functions. You should regard the wait function as simply that - it finishes executing X ms after it was called. What it does in those X ms is irrelevant, although it does serve to minimize CPU usage, because without it, LV will try to run a loop as fast as possible. You should note that during those X ms LabVIEW might still use the processor (e.g. if you have other code which needs to execute).

___________________
Try to take over the world!
Message 3 of 3
(2,719 Views)