LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ECG calculation in BPM and Baseline Drifting

I doing about ECG calculation and baseline drifting. I had done the peak detection. The output answer i not so sure what is it talking about.
1. How do i  do the calculation of the data i get in labview must be in beat per minute (BPM), my data are in seconds?
2 my signal are floating , how do i do the baseline drifting? (Example needed)
3. How do  i know what is the actual threshold amount to measure the peak if different data is being load in?
 
I am using Ver 8.2 student labview. Attachment of my program and a sample data i using currently.
 
Download All
0 Kudos
Message 1 of 7
(4,697 Views)

Howdy,

To start, I would recommend not using XY data but rather a waveform. This is the way most people use data such as yours in LabVIEW. The reason for this recommendation is that your X data is simply discrete steps of 1 ms. See if this makes things easier for you.

Charlie M. CLD
Message 2 of 7
(4,672 Views)
 
Charlie M. CLD
Message 3 of 7
(4,671 Views)
How am i going to do the baseline drifting? I am totally lost..Calculation i had done! can sumone help me. i am using ver 8.2 student ver. i dont have the advance tool program
0 Kudos
Message 4 of 7
(4,651 Views)

Hi scartch,

Do you already have an algorithm for baseline drifting that you are looking to implement? 

If you have different data, how is the threshold calculated?  You may want to use the "Array Max & Min" VI.  If you want the average you can use "Add Array Elements" and divide by "Array Size." 

Hope that helps!

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 7
(4,614 Views)
i am abit lost about what u had told me. my calculation i had completed. But now is i am facing the auto threshold detector problem. is there any method to do with it?
 
using labvie ver 8.2 student
Download All
0 Kudos
Message 6 of 7
(4,595 Views)

Hi scartch,

It's a little more complicated since the threshold for your beginning data needs to be different from the threshold for the later data points.  You could try breaking the data into sections and using a different threshold for each.  Another option could be to use shift registers and look for peaks by comparing amplitudes at each point. 

You may find the Developer Zone documents Peak Detection Using LabVIEW and LabVIEW for ECG Signal Processing useful. 

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 7 of 7
(4,558 Views)