04-10-2009 05:04 PM - edited 04-10-2009 05:06 PM
Sorry, I didn't read everything in your first post. I did not notice that you wanted the two highest peaks and not the first peak in each waveform.
I think there's is a bug in your time calculation though. I just don't have time to find it. I can't get it to return anything other than 0. I suspect its your search 1D array function. It's never a good idea to use this with floating point numbers because you cannot do a = comparison.
04-11-2009 12:55 PM
Thanks Dennis.
Each channel is measuring a certain moment of acceleration, which will be displayed as a global max on the graph. Ideally what I would like to happen is, after sampling has ended, for both arrays to be searched for their highest peak (global max) and for the time difference between these two peaks to be shown on the display after the program has ended. However, what I have right now is a sort-of real time measurement.
Johnny