LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview stop-watch

If I want to create a stop-watch in labview, what should I do?
Is there any example related to this in its library?
0 Kudos
Message 1 of 9
(7,218 Views)
Hi 5616

Use the "Tick Count" VI in the Time & Dialog section.
Read the count when you press your "Start" button and read again when you press "Stop" and subtract to give you a count in milliseconds.

Regards
Neil
0 Kudos
Message 2 of 9
(7,210 Views)
Hi,
Which version of LV are you using if its7 or above then inthe functions pallet yuo have a vi called elapsed time which you can make use as a stop watch.
else ifs a lower version all you have to do is use a present time before a loop and keep reading the present time inside the loop and when the elapsed time is equal to the stop time then you can stop the VI.
hope it helps
cheers
vicky
0 Kudos
Message 3 of 9
(7,209 Views)
I am using the Labview version 6.1

If I am going to design a stop-watch which run "Start" and "Stop" with only one button such as a Boolean,

what should I do?

P.S. Thanks all the reply.
0 Kudos
Message 4 of 9
(7,206 Views)
Hi again,

I've attached a picture of a very simplified solution using a single bool and an event structure.
The numeric displays the tick count as you press the button which can be ignored.
On release the bool displays the lapsed time. Very simple, hopefully it will give you enough of an idea.

Good luck
Neil
0 Kudos
Message 5 of 9
(7,191 Views)
Eeeek 961kb jpg !!

This jpg should be more managable. 🙂
Message 6 of 9
(7,179 Views)
Thanks for the reply!
I will try your solution!
0 Kudos
Message 7 of 9
(7,138 Views)

Can your stop watch be used as a subVI?

 

mhaque

0 Kudos
Message 8 of 9
(6,412 Views)

I'm trying to create a stop watch in Labview also. What if I wanted to save or write the time to a file or a spreadsheet. For example  I stop the watch at a certain instant of time, I want to write this instant of time to a spreadsheet. How can I do that in labview?

0 Kudos
Message 9 of 9
(5,653 Views)