03-17-2019 03:12 PM
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.
03-17-2019 03:42 PM
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. |
03-17-2019 06:14 PM
Hello, try this way.
03-17-2019 06:20 PM
The complemente.
03-18-2019 12:08 PM
i am using PPG waveform as input signal for calculating pulse rate. Width is 1.
I am attaching the modified VI and input waveform.
03-18-2019 12:46 PM
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.
03-18-2019 02:28 PM
03-18-2019 02:41 PM