LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find the first peak

Solved!
Go to solution

Hi

I am new to LabView. I have trouble finding the peak of the signal - see image.bmp. I have lots of data set where I need to find the start peak of the signal. Sample data is in the testdata1.txt file. I need to automate the process and it is not possible to use the peak detection vi. How do i solved this?

 

Best regards

Christian

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

Hi Christian,

 

there are several approaches possible:

  • use the derivative to detect peaks
  • use the first x samples to determine a "baseline", then search for samples with value greater than baseline+limit…

 

Btw. PNG offers much smaller filesize than BMP:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,696 Views)
Solution
Accepted by topic author labjansen

You could try this peak detection VI.  It doesn't use NI peak detection.vi.  It relies on a peak being deltaY greater than the surrounding data.  For your data a deltaY of 3-5 looks good.  Then just take the first peak from the array of peaks returned.

 

Craig

 

peakdet_vi_image.png

 

0 Kudos
Message 3 of 3
(1,634 Views)