05-09-2011 07:16 AM
Hi
We're currently working on a project and we got some issues finding the BPM when we connect the system to a NI USB-6009 for input.
The system works fine when we're simulating our signal, but the physical signal from a function generator connected through to the NI USB-6009 doesn't seem to work properly.
We've attached a little part of our system which describes this.
We appreciate any help you can give us.
05-09-2011 08:08 AM
BPM? Beats per minute? I haven't had an opportunity to look at your code, but will say that there is frequently (pardon the pun) a world of difference between passing a simulated signal into a program and what it might actually see when hooked to hardware. Look at the signal using the National Instruments Measurement & Automation explorer (MAX) that installed with your hardware/LabVIEW. It should allow you to see what is coming in and then you can compare it with the "theoretical" signal your simulation generated to see how they differ.
05-09-2011 08:17 AM
do you have an example of the data the you are collecting and trying to process with you code?
05-09-2011 08:53 AM - edited 05-09-2011 08:57 AM
Read at least 5 seconds of data each time. That will be 5000X5=25000 samples not only 50 samples. In order to calculate BMP you need at least two compleate ecg complex. Then you read only 50 samples you will never one ECG complex That will help as a starter
05-09-2011 09:16 AM
Ah, EKG data. Frequently noisy in the real world, so I reiterate the looking at the incoming data to see how it differs from the simulated.
05-09-2011 09:23 AM
There are some good articles about processing ECG signals using LabVIEW on our Biomedical User Group (look in the Documents area). You will also find information about the free NI Biomedical Starter Kit which includes some good biomedical example applications and VI's for biomedical applications, as well as a discussion forum may have the answers to many of your questions already.
Steve