LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting peaks in blood pressure waveform.

Hello all.

I am studying human pulse waveforms and attempting to detect peaks in real time. I have a continuous stream of data coming in a serial port, this is converted from characters into integer values which are then plotted as a moving waveform. It is a good clean signal with little noise so I thought the easiest way was to keep a running array of values and, when the present value is less than the one before the previous value, (to allow for any single sample noise) that is the point where the peak has just happened. I then switch an LED.

The point then is that I don't want the LED to stay on all the way down the slope, just flash briefly. Then I guess I need to ignore the comparison until the signal has gone past the valley and then start looking for a downward slope again.

Can anyone tell me how, once the peak has been detected, to ignore looking for it until I'm on the upward slope again, maybe some sort of latching case structure, unlatched by a positive slope?

I know there are peak detection functions in LV but they don't seem to suit real time waveforms. And I can't have thresholds because the signal amplitude may vary considerably.

Thanks for any help.

Andrew

BTW, I'm using LabView 2012.

0 Kudos
Message 1 of 7
(2,846 Views)

Hi,

 

You could use the edge detection SUBVI

 

refer URL

 

https://decibel.ni.com/content/docs/DOC-1047

 

hope this helps.

0 Kudos
Message 2 of 7
(2,834 Views)

Hi,

 

This subVI is only for the action of LED being enabled for predefined time duration.

 

However, for peak detection, you may need to build the data inside the loop and wait for set of data point (depends on the acquisition rate of the application) to be collected and run the peak detection function.

0 Kudos
Message 3 of 7
(2,832 Views)

Hi ASH2020,

 

how about calculating the signal's discret first derivation; the derivation's sign should indicate a positive or negative slope.

 

 

2013-05-09_ddx.png

 

 

 

Alex

 

0 Kudos
Message 4 of 7
(2,822 Views)

Hey thanks for that. NaruF1 I doubt it would work here, it's an analogue waveform, more like a sine wave, but it could be useful for other stuff I'm doing.

0 Kudos
Message 5 of 7
(2,797 Views)

Alex, thanks. This looks very interesting. Problem is I know nothing about calculus or derivatives, and I mean nothing. Must have been off school that day! However, that's never stopped me before so I will see if I can understand some of it. Cheers. Andrew

 

0 Kudos
Message 6 of 7
(2,794 Views)

@ASH2020 wrote:

Alex, thanks. This looks very interesting. Problem is I know nothing about calculus or derivatives, and I mean nothing. Must have been off school that day! However, that's never stopped me before so I will see if I can understand some of it. Cheers. Andrew

 


 

I appreciate this! Remember: I mentioned about DISCRETE calculus.By the way, I didn't have this in school either Smiley LOL

0 Kudos
Message 7 of 7
(2,778 Views)