# LabVIEW

cancel
Showing results for
Did you mean:

## Finding maximas

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

Message 1 of 5
(170 Views)

## Re: Finding maximas

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,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 5
(154 Views)

## Re: Finding maximas

"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."
Message 3 of 5
(145 Views)

## Re: Finding maximas

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
Henrik

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 ǝɥʇ'

Message 4 of 5
(137 Views)

## Re: Finding maximas

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
What does "Engineering Redefined" mean??
Message 5 of 5
(126 Views)