LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Iterative Loops

HI,
 
I currently have a set-up using an iterative loop.  I want this loop to run once every second.  For example, the number of iterations is equal to the run time entered by the user but needs to execute once per second so that 45 iterations equals 45 seconds.  Do I need to use a timed loop or is there a way to make the iterative loop operate once per second?  Thanks.
 
Amber
0 Kudos
Message 1 of 2
(2,540 Views)
You can just use a while loop and either the Delay function or the Wait(ms) function. The advantage of a timed loop is that it can tell you when it's late and by how much. You are always going to have a bit of jitter since windows is not a deterministic OS.
Message 2 of 2
(2,533 Views)