10-11-2017 02:33 AM
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?
Solved! Go to Solution.
10-11-2017 04:34 AM
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.
10-11-2017 07:09 AM
Hello crossrulz, for your solution I need to get rid from case structure, which is necessary for me. However, I used your ideas about Reset the clock and Boolean shift register and now it works. Thank you anyway!