LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time since last event

I have a loop that acquires data and averages it every 5 minutes. What I want to do is add a counter to my front panel saying "Time elapsed since last average".

I don't have a clue how to do this, so any help would be most appreciated!
0 Kudos
Message 1 of 2
(2,686 Views)
Quite easy.

Every time you do an average, grab the millisecond timer value and store it in a shift register. Then subract the value in the shift register from the current value, and you will always have the elapsed time in milliseconds. Convert to seconds or minutes as appropriate for your situation.
Message 2 of 2
(2,686 Views)