LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find more than one peak in a waform

Solved!
Go to solution

Hi every body,

 

Could you please help how I can find the location of the tree most great values (the 3 peaks) of a time serie (waveform) ? thank you 🙂

 

Best regards

Lahcen

NI Certified LabVIEW Associate Developer
0 Kudos
Message 1 of 7
(1,516 Views)

Hi Lahcen,

 

the WaveformPeakDetection delivers more than one peak!

 

So where do you have problems with?

Can you attach a VI with typical data to describe your problem?

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 2 of 7
(1,501 Views)

Hi GerdW,

 

Thak you for replying.

My problem is that I don't want to specify any threshold. The WaveformPeakDetection vi requires a threshold as input parameter (0 by default). 

Waveform Peak Detection

NI Certified LabVIEW Associate Developer
0 Kudos
Message 3 of 7
(1,477 Views)

No, it does not require that you wire threshold.

If your peaks all might be below zero, just wire neg inf or some other suitable constant to the threshold.

 

Message 4 of 7
(1,471 Views)

Hi Perhut,

 

Yes it's not required in therms of "This Connection is required". But we should specify a value of threshold. So that the VI can do the calculation and find all peaks that are above the threshold and have a width > WIDTH. So thay are relative to the threshold. 

What I want is to find the location of exacly the 3 peaks without specify any threshold.

NI Certified LabVIEW Associate Developer
0 Kudos
Message 5 of 7
(1,464 Views)
Solution
Accepted by topic author Lahcen27

Hi Lahcen,

 

set a (very) low threshold. Then you should get a list of peaks.

Sort this list by peak height and use only the 3 most high peaks…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 6 of 7
(1,462 Views)

Good Idea. thank you GerdW 🙂

NI Certified LabVIEW Associate Developer
0 Kudos
Message 7 of 7
(1,458 Views)