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,445 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,427 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,413 Views)

Brilliant.   Thanks Lucither!

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