LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

peak detection

My VI is not able to detect any peaks. i am getting the waveform from arduino and sensor but not the number of peaks. number of peaks detedted is always 0. Please suggest suitable corrections in the VI.

0 Kudos
Message 1 of 8
(3,157 Views)

Without any data hard to help.

 

What value are you using for width?

From Help

width specifies the number of consecutive data points to use in the quadratic least squares fit. width is coerced to a value greater than or equal to 3. The value should be no more than about 1/2 of the half-width of the peaks/valleys and can be much smaller (but > 2) for noise-free data. Large widths can reduce the apparent amplitude of peaks and shift the apparent location. For noisy data, this modification is unimportant since the noise obscures the actual peak. Ideally, width should be as small as possible but must be balanced against the possibility of false peak detection due to noise.
0 Kudos
Message 2 of 8
(3,146 Views)

 

Hello, try this way.

image.png

0 Kudos
Message 3 of 8
(3,125 Views)

 

The complemente.

image.pngimage.png

0 Kudos
Message 4 of 8
(3,122 Views)

i am using PPG waveform as input signal for calculating pulse rate. Width is 1.

I am attaching the modified VI and input waveform.

Download All
0 Kudos
Message 5 of 8
(3,097 Views)

Well, I see that you're using the cursor Y level as the threshold, which is 1.5 but all of your signal is higher than that.  You need to raise that so that it crosses the threshold for each peak, so somewhere around 3.

 

If that's not your issue, then can you post a VI with actual data?  Basically, save the data you see on the waveform chart inside the VI, so we have a sample set to work with.

0 Kudos
Message 6 of 8
(3,090 Views)

image.png

0 Kudos
Message 7 of 8
(3,082 Views)

image.png

0 Kudos
Message 8 of 8
(3,080 Views)