Showing results for 
Search instead for 
Did you mean: 

Finding maximas


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.


0 Kudos
Message 1 of 5

Hi sundas,


ArrayMinMax works as described in the LabVIEW help…


Have you tried any other functions? Have you explored the SignalProcessing functions palette?

Mind to attach your VI with included example waveform?

Best regards,

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 5

"Maxima" is the plural of "maximum".  So then "maximas" must be "maximumses".

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 5

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.


Greetings from Germany

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

0 Kudos
Message 4 of 5

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.

LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 5 of 5