I need to measure the period of a 1D array of doubles. This data is taken from an encoder that puts out a square waveform. The problem is that the period changes every 1 cycle and I need to be able to accurately measure the period of each cycle. What function can I use to get this data?
Sorry about that, the second column is another set of data from another sensor. I will give this a try and see what results I get. Will post any other problems here.