From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(3,152 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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(3,137 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
(3,113 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
(3,107 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
(3,100 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 LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(3,098 Views)

Good Idea. thank you GerdW 🙂

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