キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

boolean start/reset stopwatch

解決済み
解決策を見る

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 件の賞賛
メッセージ1/4
5,617件の閲覧回数

Hi Super Neuron,

 

I think this is what you need to do..

 

Warm Regards,

 

Nitz..

(Kudos are always welcome;))

0 件の賞賛
メッセージ2/4
5,599件の閲覧回数
解決策
トピック作成者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"
メッセージ3/4
5,585件の閲覧回数

Brilliant.   Thanks Lucither!

0 件の賞賛
メッセージ4/4
5,551件の閲覧回数