11-30-2007 06:39 AM
12-03-2007 01:32 PM - last edited on 02-07-2024 08:51 AM by migration-bot
Hello bmeecg,
Welcome to the NI forums! If I understand your question correctly, you wish to calculate the instantaneous heart rate from your ECG (the inverse of your R-R interval). I would recommend using the Peak Detection vi (Functions Palette»Signal Processing»Signal Operation) to determine the location of the R wave (since it is the largest magnitude, you could set a threshold above your P and T waves so that it only picks up the R wave). The calculation for time is in the detailed help for the Peak Detection vi (Ctrl+H»Hover over the VI»Detailed Help).
I also found this forum which has a VI that reads an ECG and then does a lot of analysis. Maybe this would help you out as well.
And just FYI, the Counter/Timer forum is oriented toward our counter/timer boards (e.g. the PCI-6602), the Multifunction DAQ forum probably would have more of the type of people that could help with this issue.
However, please post back here if you have more questions about this.