LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Duration of a zero crossing

Hi all,

I m a newbie to LabVIEW and I really need some help with some zero
crossing issues.
I have a wave generated from the values output by a pressure sensor. I
differentiated this wave to obtain a wave with peaks, valleys and zero-
crossings. Then I used the sign generating vi to generate another
square wave depending on if the value is positive negative or zero.
What I need to do now is to find the time duration between each zero
crossing.i.e. How much time elapses before the next zero crossing
occurs. Any ideas how to do this ?

Thanks and regards.

0 Kudos
Message 1 of 4
(3,032 Views)

Once you get the positions of the zero crossings, use the threshold 1D array to find the time difference from the time array. You can prepare the time array if you know the dt and t0. Also you can make this using the 'Get waveform time array.vi' in the waveform pallete.

BR
0 Kudos
Message 2 of 4
(3,026 Views)
Here's a small VI which does part of that
BR
0 Kudos
Message 3 of 4
(3,011 Views)

Firstly, sorry for the late reply.

Secondly, thanks a million. Worked like a charm!

0 Kudos
Message 4 of 4
(2,979 Views)