LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Time value after a time interval

Solved!
Go to solution

Hi everyone,

 

Firstly, I'm sorry if my quesion is silly.

I just want to reset "Time" to 0 after a time interval like every 10 seconds. (Increase to 10 then reset to 0 and again)

How can I do it? Thanks to All

Capture.PNG

0 Kudos
Message 1 of 5
(1,622 Views)
Solution
Accepted by lucbk

Hi lucbk,

 

use a shift register to hold the start time. After 10s you write the current timestamp into the shift register (otherwise keep the last value).

 

You may look into the ElapsedTime ExpressVI to see how NI does the same job… 😄

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 5
(1,620 Views)

Sr I can't get your idea, can you show me a screenshot ? Thanks

0 Kudos
Message 3 of 5
(1,609 Views)

Thank you for your recommendation

I replaced it by Elapsed Time VI and It worked like what I expected

0 Kudos
Message 4 of 5
(1,599 Views)
Solution
Accepted by lucbk

Hi lucbk,

 

you really should know how to use shift registers:

check.png

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 5 of 5
(1,595 Views)