03-28-2019 05:05 PM
Hello I am trying to get my analog ECG pulse into LabVIEW from my SC-2075 breadboard. I am having trouble getting the signal into LabVIEW, and I am getting incorrect waveform pulse. I have checked my circuit which consist of an instrumentation amplifier, a 60 Hz notch filter, and a Low Pass Filter. LabVIEW is being very inconsistent with getting the pulse to look like an actual heart rate like its supposed to, and I would like to know why it does not always work. Attached is my LabVIEW circuit, however it can not accurately read my heart. I also do not have access to the Biomedical Toolkit or any Advanced Signal Processing Toolkits.
03-28-2019 06:30 PM
Does you DAQ Assistant setup make sense?
To me it doesn't. you are reading N sample mode, 100 samples at 1000 Hz rate. That means you are getting 1/10 second of data. Then the code stops collecting, does its calculations, then the loop iterates again collecting another 1/10 of a second having missed all the data after the last capture because it is in N sample mode rather than continuous sample mode.
Even if you fixed that, how do you expect to see enough heartbeats in a 1/10 of second? Since heart rates are about 60-120+ beats per minute, it is going to take at least a couple seconds before you see a few heart beats to be able to measure the time difference between them! Try setting 3000 samples at 1000 Hz rate, continuous mode.
03-28-2019 09:19 PM
Ah, my two Pet Peeves, the Dreaded DAQ Assistant and its evil twin, the Dynamic Data Wire! I've pasted this link into the Forum so many times that I'll only say "Do a Web Search" for the phrase "Learn 10 Functions in NI-DAQmx and Solve 80 Percent ...". Read it, learn how to banish the DDA (Dreaded DAQ Assistant) and vow to never again use the Dynamic Data Wire! [Minor drawback -- you'll need to learn/use a little more LabVIEW] [Major advantage -- you'll need to learn/use a little more LabVIEW].