06-02-2009 02:24 AM
Hello all,
I would like to control my while loop's execution time. In other words I want to stop while loop's execution after time (in ms) which is set by user. For example user sets 5 seconds to front panel control and a while loop runs and stops after 5 seconds.
I am not sure is it possible with the while loop. I succeed with the timed loop but it suits badly to my application. Is there any other loops for timed control if it is not possible with while loop? There is also a simple while loop with Random Number (0-1).vi as attachment.
Best Regards,
Jick
Solved! Go to Solution.
06-02-2009 02:41 AM
"Elapsed time" express VI...Please see attached
06-02-2009 03:10 AM
hi,
see this, may be it will help.
Best luck
Gaurav k
06-02-2009 04:57 AM
Hi again,
I managed to solve my problem right after I posted my first message. I did it with elapsed time and shift register (for reset elapsed time).
Thanks for your replies anyway! 🙂
Best R,
Jick
08-20-2013 09:28 AM
08-13-2014 04:30 AM
Hi egyptiandude,
I also have the same problem right now. I have to conntinuosly update some values in a while loop for a time decided by the user. So the while loop must continuosly run for an arbitrary time. I am also using elapsed time function, but it works only for the first iteration (everything is into a for loop). I figure out I have to use shift registers to reset the elapsed time function, but still did not understand how.
Also, how to reset the elapsed time output boolean back to false,once it has reached the target time? thanks
08-13-2014 05:42 AM
08-23-2016 05:03 AM
How can I do time control for while loop without express vi.
08-23-2016 05:58 AM