From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(2,973 Views)
Solution
Accepted by topic author 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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,971 Views)

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

0 Kudos
Message 3 of 5
(2,960 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
(2,950 Views)
Solution
Accepted by topic author lucbk

Hi lucbk,

 

you really should know how to use shift registers:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,946 Views)