LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

somebody helps me with peak-detector.

I have a series data in 2-d array.  I want to find the peaks in the fisrt col. I use this program to find peaks and return its Amplitude and location. but i find the Amplitude returning is not the numeber in my array and the location is not integer. what should i do!
 
the data and the program is attached
Download All
0 Kudos
Message 1 of 2
(2,414 Views)

The peak-detector vi uses interpolation to find where the peaks would be if the data provided was a continuous curve, rather than consecutive points.  Because of this, peaks will often be placed between points, and at values not actually listed.

One quick way to get the values and locations from the array itself would be to take the locations provided, and do a min-max of the indexes surrounding that area (round value to nearest integer, and use index above and below, for instance).

Hope this helps!

-Cory
0 Kudos
Message 2 of 2
(2,401 Views)