LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

total number of peaks in a signal

Hi.

I wolud like to know a method to find the total number of peaks a signal whose time duration is more than a minute.

I've attached a vi, which has a  simulated ECG signal for which the number of peaks has to be detected.

I've tried to get the number of peaks in an array every time the signal moves in the waveform, but it is not dispayed as array of numbers.

Kindly help me in solving this.

 

Good Day Smiley Happy

 

 

 

0 Kudos
Message 1 of 14
(3,246 Views)
I can not open your VI at this point but generally speaking x(i) is a peak IF (x(i-1)<x(i)) AND (x(i+1)=<x(i))

Hpoe this helps.

0 Kudos
Message 2 of 14
(3,218 Views)

Hi SAIbme,

I have attached a VI along with a picture below. Hope this helps\

 

Peaks


0 Kudos
Message 3 of 14
(3,203 Views)

Hi NapDynamite,

Thanks for your reply. I can understand the VI you have sent me, but it works out only to find out the peaks at that instant of time.

I would like to find total number of peaks that appear in that waveform graph until the signal stops running (or until it is intentionally stopped). 

Kindly help me in solving this.

 

Good Day :smileyhappy:

 

 

0 Kudos
Message 4 of 14
(3,175 Views)

take a look at this one ...

http://forums.ni.com/t5/High-Speed-Digitizers/Continuous-pulse-counting/m-p/2403134#M4122

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 5 of 14
(3,165 Views)

here is something to play with, but keep in mind that for ECG pulse counting this is not the best approach.

pulse.png

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 14
(3,152 Views)

Hi Henrik_Volkers,

Thanks for your reply.

 

I went to the link which you suggested me,

http://forums.ni.com/t5/High-Speed-Digitizers/Continuous-pulse-counting/m-p/2403134#M4122,

and I downloaded the VI, pulse counting signal loop.VI, but i'm unable to run it since there are some sub VIs which I cannot open.

 

Also, in the VI, pulse.vi ‏23 KB, may I know how to replace 'read from measurement file.VI' instead of simulating the signal and how to control the value of 'N' to get better result ?

 

Good Day Smiley Happy  

 

 

0 Kudos
Message 7 of 14
(3,142 Views)

Hi 1984,

Thanks for your reply.

Kindly be more specific about implementing the equation which you have suggested " speaking x(i) is a peak IF (x(i-1)<x(i)) AND (x(i+1)=<x(i))" .

Can it be implemented using MATLAB script?

 

Please suggest me an idea for it.

 

Good Day Smiley Happy 

0 Kudos
Message 8 of 14
(3,138 Views)

just replace the sequence in the while loop with you datasource and delete the simulation part.

And don't expect ready solutions , we are not here to do your homework 😉

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 9 of 14
(3,135 Views)

I don't have your subvis but here is a mod of your first post

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 10 of 14
(3,132 Views)