LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring and displaying time difference between peaks from two different channels

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.

 

 

Message Edited by Dennis Knutson on 04-10-2009 04:06 PM
Message 11 of 12
(706 Views)

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

0 Kudos
Message 12 of 12
(682 Views)