01-21-2021 07:18 AM
Hello,
I need some some help in finding all maximas of the signal.
For example: If the signal has 3 peaks I want to know the highest peak values(locations on x-axis).
I have tried function array max and min. But I gives only 1 highest peak value.
As input I have signal of 1D array.
Thanks
01-21-2021 08:34 AM - edited 01-21-2021 08:37 AM
01-21-2021 09:23 AM
"Maxima" is the plural of "maximum". So then "maximas" must be "maximumses".
01-21-2021 09:52 AM
the peak detection vi seems the one to try 😉
if you set width to 3 points you will all peaks 😄 so better read the help of that function and set reasonable tresholds and widths ... but be aware that this function give you subsample x resolution and fits a square function on the data, so if you want the numerical max value and sample index, use the peak detection positions, cut out a datasampl of search width length and use the array max vi.
01-21-2021 12:08 PM - edited 01-21-2021 12:11 PM
It typically really helps to attach a simple VI containing example data because the choice of solution strongly depends on it. What do you know about the "peaks" (typical widths, amplitudes, shape, etc.)? How much noise is there? (if there is a lot of noise, each peak might have 10 micropeaks). How much baseline drift is there? Are the peaks negative or positive?
As mentioned, the peak detector might help.