03-03-2009 07:24 PM - edited 03-03-2009 07:29 PM
Hello,
I would like a delay to execute (e.g. 'Wait (ms)' VI) at the end/start of each cycle of a while loop.
For example, I have a small While loop that runs for 200ms, and this is enclosed in another While loop that does processing on the data output from the inner loop. I want to outer loop to delay for 100ms at the end/start of each of its cycles.
How do I do this?
Thank you
MCU
03-03-2009 07:39 PM
Hi,
I would suggest that you use a time loop instead. A time loop will allow you to set your start time of the loop, and you can use that to create a delay between each iteration of the loop. Also, you can create a time delay function with error in and error out terminal, which would allow you to set a delay at the beginning of a loop by enforcing a data flow sequence. The worst option would be to use a sequence structure, which you should avoid at all cost, since it defeats the very nature of LV.
Yik