09-20-2013 01:56 AM
Hi, I want to give a wait to my VI (it could be 1 second same as 1h or more). I was using the wait function but what I want to know is if it is possible to set a break so that the user can interrupt the VI before the wait function has finished.
In case it is not possible should I replace it with a for/while cicle? If yes, what is the duration of each iteration of a for/while cicle without any element in its inside?
Thank you guys
Solved! Go to Solution.
09-20-2013 02:10 AM
No, you cannot abort a Wait (ms). You can abort a Elapsed Time function.
It's sillyto ask how much time a loop takes with nothing in it. You can't have a loop wait for x amount of time without code inside the loop.
09-20-2013 02:14 AM
Yea I suppose that was silly a thing like that with the for/while cicle but I need to set a break.
About the Elapsed time function how can I stop it?
Thank you for your help
09-20-2013 02:30 AM
09-20-2013 02:44 AM - edited 09-20-2013 02:48 AM
mmm I saw the example and read the help. I think I should use the time delay instead since I want that the user set the time to wait.Is it correct?
EDIT: no you were right. I read better the help.
Thank you for the help now it is clear 🙂
09-20-2013 02:54 AM
09-20-2013 02:59 AM
yep I edited the message. at the end I did the VI as you write in your last message 🙂
Thank you