LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up a stop watch

The stopwatch is still not working as its supposed to. Is there a way for me to make sure that it counts continuously and as not dependent on the time for the input data to be acquired? Any suggestions with this will be very much appreciated.

Thanks

0 Kudos
Message 11 of 14
(2,052 Views)
You already had done this. Just put it in a separate loop. A small modification you should make is to put a wait (msec) in the loop. No need to run the loop as fast as possible.
0 Kudos
Message 12 of 14
(2,037 Views)
Thanks for your suggestion, but if I put the stop watch in a separate while loop, won't I have 2 stop buttons then? Is there a way to ensure that I have only one stop button and when I press stop, both loops terminate?
0 Kudos
Message 13 of 14
(2,032 Views)
There are a number of ways. Simplest in your case is to just create a local variable of the stop button and place the local inside the other while loop. You cannot create a local from a Boolean with a 'latch' action so change the mechanical action to a 'Switch'.
0 Kudos
Message 14 of 14
(2,028 Views)