07-03-2008 01:06 AM
07-03-2008 01:21 AM
Hi YuanZhun,
you can use a Queue for it. Use the "Dequeue Element" function and connect 5000 as timeout. If this block receives no message it waits 5s, but if you want to stop your loop you can send a command to it and the loop will stop earlier.
Another solution is to run the loop with a lesser time, check the condition with each loop and count the iterations.
Hope it helps.
Mike
07-03-2008 03:02 AM
YuanZhun wrote:
Now I have a simple VI , in while loop ,wait 5000ms,but when the time is to 3000ms ,i want to jump out of the loop , how can i program it ?