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: 

boolean start/reset stopwatch

Solved!
Go to solution

Dear Labview Board,

 

I have a boolean that is continually changing within a while loop, and would like to measure how long it stays true.   Each time the boolean goes true, I would like to begin counting up from zero and continue until the boolean goes false.   When the boolean goes false, I would like an indicator to hold the last count until the boolean goes true again, repeating the process.

 

It sounds simple, but it has been surprisingly difficult for me.   I hope someone can help.

 

 

Thanks,

Zach

 

I attached a VI showing my construct... a boolean within a while loop.   It start/stops but doesn't reset.

0 Kudos
Message 1 of 4
(4,441 Views)

Hi Super Neuron,

 

I think this is what you need to do..

 

Warm Regards,

 

Nitz..

(Kudos are always welcome;))

0 Kudos
Message 2 of 4
(4,423 Views)
Solution
Accepted by topic author super-neuron

Hi Zach,

 

Show elapsed time example.png

 

 

This should do the job for you.

 

Regards,

 

Lucither

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Message 3 of 4
(4,409 Views)

Brilliant.   Thanks Lucither!

0 Kudos
Message 4 of 4
(4,375 Views)