04-13-2011 08:33 AM
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.
04-13-2011 09:32 AM - edited 04-13-2011 09:33 AM
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.
04-13-2011 09:41 AM
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.