LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time reset

The following VI generates a random number and the time starts when the value generated is between two specified values. How could I modify this Vi to have the elapsed time reset to zero every time the random number is between those two values instead of continuing counting?
 
Thanks in advance
 
Valls
0 Kudos
Message 1 of 4
(2,426 Views)
If I understood you correctly, all you need to do is wire a TRUE to the "Reset" input, and then use a shift register to pass out the "Present (s)" output to use as the value to pass into the "Set Start Time (s)" input. See attached.
0 Kudos
Message 2 of 4
(2,416 Views)
Forgot one little thing: The shift register should have a constant of 0 wired to it to initialize its first value.
Message 3 of 4
(2,415 Views)
It works great! thanks!
0 Kudos
Message 4 of 4
(2,390 Views)