LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak Detector for jagged waveform

HI to all NI Guru,

 

i have a problem on getting the correct peak for my waveform,

please help yourself to see the picture that i've attached.

i already try to change the width of the peak but i still got the red arrow value.

 

you can use the waveform simulator below to re-create the waveform shape.

it does not have to be exactly the same as my picture, but i just need to have a way so that i will only read the true value of the peak instead of the noise/false peak.

 

thanks

 

Download All
0 Kudos
Message 1 of 3
(2,790 Views)

Hi racd,

 

what about using a lowpass (aka running average) to smoothen your waveform?

Then PeakDetector should only find your "real" peaks…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,779 Views)

A peak width of about 0.8*one large division in your graph should come close to finding only the peaks you want.

 

As GerdW pointed out, smoothing can also help. If you try smoothing, be aware that the filter/smoothing process will introduce some delay in the peak locations.

 

Lynn

0 Kudos
Message 3 of 3
(2,746 Views)