LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Threshold duration search

I would like to search waveform signal to find the onset of when the signal maintains the threshold level for 25 ms or longer. I am working through it now and thought I would see if anyone had some interesting ideas of ways to do this.

Cheers,
Mark
0 Kudos
Message 1 of 3
(2,367 Views)
Mark,

I think the easiest approach would be to simply implement a software counter. Inside of a loop, check each point in the waveform and test whether it has maintained the threshold. If it has, then add one to the count, and if not, reset the count to zero. When the count reaches the appropriate multiple of the waveform's dt (to equal 25ms), then you can quit the loop and return the information.

Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,357 Views)
That sounds like the simple way to go, I will give it a try!

Thanks,
Mark
0 Kudos
Message 3 of 3
(2,341 Views)