LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Heartbeat - Peakdetector

Hello guys,

 

I am doing a project on an ECG analyzer.  I currently am up to where I filter out the signal and then I have to count the number of R-R peaks, so that I can detect the heart beats per minute.  However, I do not seem to be getting any signal coming out from my peak detector.  I am not quite sure what the issue.  Can any of you guys assist?  Thanks.

0 Kudos
Message 1 of 5
(2,810 Views)

could you attach the file you are reading from? The issue could be with that. Also, no need for a local variable, just split the sampling frequency wire. You are creating a race condition. If the user updates the control, there is a possibility (which is more than likely) that the local variable will be read first and then if the control value changes you will get a different value going into your filter than that which is used in the division. To see an example, use highlight execution and change the sampling frequency value AFTER you see that the local is read. You will see the variable value doesn't equal the control value going into your filter.

 

Also, the index array function is expandable. You don't need two of them, you can instead click and drag the bottom of the VI and it will expand to take more indexing inputs. Hover your mouse over the VI and you will see.

 

That's just some cleanup stuff. Like I said, post your text file if you can. Thanks!

Message Edited by for(imstuck) on 06-13-2010 10:13 AM
0 Kudos
Message 2 of 5
(2,797 Views)
just noticed...stick to your original thread
0 Kudos
Message 3 of 5
(2,794 Views)
Here are the different files that I am reading from.
Download All
0 Kudos
Message 4 of 5
(2,786 Views)

hi speakerboxx,

  You need to know the sampling rate..i.e time between eache in  samples...then you can calculate the heart rate...

 

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 5 of 5
(2,763 Views)