LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Peak Detection VI

I am trying to find the peak of the QRS complex  in a heart beat using  the Waveform Peak Detection VI, I am unclear on what the Width  input actually does and how it effects the VI's output 
I would greatly appreciate  and advice or clarifications.

mwpars_0-1650987343481.png

 

0 Kudos
Message 1 of 4
(1,300 Views)

Did  you check the help file?

 

"width specifies the number of consecutive data points to use in the quadratic least squares fit. The value should be no more than about 1/2 of the half-width of the peak/valley 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 not important because the noise obscures the actual peak."

 

 

0 Kudos
Message 2 of 4
(1,273 Views)

I did check the the help file, but Im unsure whether the width refers to the number of data points assigned to a Peak or Trough  or the actual span of a peak or trough, because when I use a  number closer to the value of the span  I get a more accurate result than if I assign a integer value. 
and thank you for responding

0 Kudos
Message 3 of 4
(1,252 Views)

Can you attach a file with some example data?  Like, copy the waveform you get into a control on a new VI, mark that as the default data, and save it, then upload that?

 

Preferably as LabVIEW 2018 or earlier so I and more people who haven't migrated to newer versions yet can see it.

0 Kudos
Message 4 of 4
(1,231 Views)