From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delay in the while loop

Hi, Sometimes we need to use 'Delay' in the while loop to slow down the loop. I am wondering what happened behind it. It will free up the CPU usage?
Thanks.
0 Kudos
Message 1 of 2
(2,255 Views)
Yes. During the delay, the CPU is free to run other threads. Also, a delay of 0 ms will allow LabVIEW's internal scheduler to let other, parallel nodes execute if their input data is ready.

Lynn
0 Kudos
Message 2 of 2
(2,242 Views)