LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pause a clock with elapsed time function

Solved!
Go to solution

Hello, I'm trying to implement clock function with start/stop mechanism. I need it to be done in the way that clock is located inside the case structure (see pictures). The idea is that present time compared with previous iteration time and if it more than 1 second, difference is added to start time and written to start time terminal in elapsed time function. However, it does not work as it should. Can't find the reason. Any suggestions?

Clock1.jpgClock2.jpgClock3.jpg

Download All
0 Kudos
Message 1 of 3
(3,048 Views)
Solution
Accepted by topic author sergi22

The Elapsed Time already does what it looks like you are trying to do.  Use a single shift register to hold a Boolean.  When not paused, just write a TRUE to the shift register.  In the paused state, wire this shift register to the Reset input of the Elapsed Time.  This will set the start time. When paused, write a FALSE to the shift register.  Then you just need to look at the Elasped Time and the Time Has Elasped outputs.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,020 Views)

Hello 

0 Kudos
Message 3 of 3
(3,006 Views)