LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to I apply a TimeClock that starts from zero 00:00:00

Can anyone help me out there , all I would like to do is apply a clock function that will start from 00:00:00 and when the VI

stops I can make a record of how long the VI has been running. On the next start the VI should also reset back to 00:00:00.

If some one can make this VI and attach to the forum, I will be very grateful.

---------------"Learning Never Ends" -------------------- Rakum42---------------
0 Kudos
Message 1 of 3
(2,233 Views)

Can you post the code you've already written?  If you're not sure where to start, you'll want to use Get Date/Time in Seconds at the beginning of your program.  Put the same function inside your program's main loop.  Subtract the two and wire that value to a numeric control, formatted to display relative time.

0 Kudos
Message 2 of 3
(2,223 Views)

Time.png

 

Pretty basic-  NOTE: the indicator "Numeric" has display format as "Relative Time."  As seen in the next Figure.

 

The Time format for indicators is a pretty powerful feature that can save a lot of hassle trying to make a time indicator. 

untitled.PNG


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,222 Views)