Re: how can a control for true/false be changed while program is running
- From: altenbach <x@xxxxxxxx>
- Date: Mon, 19 Sep 2005 13:13:44 -0500 (CDT)
You need to take a tick count before entering the loop, then another tick count at every iteration inside the loop. The difference will tell you the elapsed time that you can compare with the threshold. If you need to be able to change the timeout during the run, the terminal should go inside the loop too. Modify as needed.
<img src="http://forums.ni.com/attachments/ni/170/143283/1/timed_stop.png">
Of course in a more general case, you would add another button or local variable and use logical OR between them so the loop can also be stopped either with the timer or manually as needed.Message Edited by altenbach on 09-19-2005 11:13 AM
timed_stop.png:
http://forums.ni.com/attachments/ni/170/143283/1/timed_stop.png
.
- Prev by Date: Re: Can someone help me create a dll ?
- Next by Date: Re: Fatal Internal Error: "memory.cpp", line 593
- Previous by thread: Re: Problems with serial port synchronization.
- Next by thread: Re: how can a control for true/false be changed while program is running
- Index(es):
Relevant Pages
|