LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Zero crossing rate

Hi. I have an array of data points and would like to calculate the zero crossing rate (where the signs of pairs of data points change) over N number of consecutive samples.  The aim is then autocorrelate this data and find to find any periodicities in the data (this bit I'm fine with). The total number of zero crossings over the whole array would be a good first step but then ideally I would like to have some kind of rolling average. Does anyone have any experience of doing this?

 

Thanks in advance.

0 Kudos
Message 1 of 3
(2,677 Views)

Search the forums for examples. They have been posted a lot, but here is a simple one you may need to modify slightly to get what

 you expect. It should at least get you started.

 

 

 

 

 

0 Kudos
Message 2 of 3
(2,669 Views)

Or use zero crossing pt by pt.vi. I was not aware this VI existed, but assuming it is part of the standard installation, go for it.

0 Kudos
Message 3 of 3
(2,664 Views)