Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you recieve the heart rate from an ecg.vi?

Jace,

I just changed the file extension. I zipped the doctors vi and all the data i saved from taking peoples ecg together.

Ray
0 Kudos
Message 11 of 22
(4,261 Views)

Hi Ray,

I have been successful in finding the intervals and total number of pulses in your data, without knowing the sample rate though this data is not a “heart rate”but a number of samples between beats. This should however give you a great start so that you can use the sample rate to equate these intervals to real time. As far as your overall application, I suggest using the interval to base your alarm off of rather than taking a segment of data and finding the rate.  I hope this helps!!  



Message Edited by jaced on 01-03-2008 01:03 PM
JaceD
Signal Sources Product Support Engineer
National Instruments
0 Kudos
Message 12 of 22
(4,245 Views)
HI Jaced,

Thank you for al the help I am recieving the r-r intervals now. I am using a sample rate of 1000. when i try to convert the r-r intervals into a pulse using the sample rate i am coming up with all kinds of wierd numbers. The other thing that i notice is that my r-r intervals are all over the place and they should be pretty uniform.

Ray
0 Kudos
Message 13 of 22
(4,238 Views)

Hi Ray,

Have you set the threshold so that it will only detect the R? also the reason for the width control is so that you can set it large enough to avoid any peak being detected twice. The intervals will be in samples so you will need to convert to time based on your sample rate. It sounds like your threshold is just set improperly.

JaceD
Signal Sources Product Support Engineer
National Instruments
0 Kudos
Message 14 of 22
(4,227 Views)
I have a question reagarding sending the data to a internet.  I want to send data being written to a web site.  After the file is created from the vi, how do i send that file automatically to a website.  I don't want to do it manually, so is there a way to upload to website manually

Raj
0 Kudos
Message 15 of 22
(4,206 Views)
I meant is there a way to automatically send the tdm data files to a database on the internet. The data base is a mysql database.

raj
0 Kudos
Message 16 of 22
(4,204 Views)
Hi Jace,

Thank you again for all the help I think that I have the Heart rate and alarms all working now. Part of the problem was that my software library files were corrupted somehow and that is why I could not use some of the vi's that I wanted too. Thank you for all the direction you gave. The post above is a friend of mine from school who is working on a seperate project that involves sending medical data to a database and he wants to use the ecg vi to seee if it is working so I had him talk to you on how to do that.

Ray
0 Kudos
Message 17 of 22
(4,172 Views)

Hey Raj,

To get the best help, I recommend that you post your question in a new thread on the LabVIEW board.  I'm sure that you can understand that the people that specialize in data acquisition hardware may not be specialists in using databases.

To get you started, I recommend that you consider using the database connectivity toolkit, which your university may already have a license for.  I searched ni.com for mysql, and found this document.

Good luck!

Luke
Applications Engineer
National Instruments
0 Kudos
Message 18 of 22
(4,166 Views)
Hey Jace,

I would once again like to thank you for all your help our project is in the home stretch and working pretty good. We do have one problem though. We have baseline noise in our ECG display. Is there an easy way to get rid of this in labview. From a previous lab we had we have code to remove it in matlab but it calls on other m files in the code so I do not know if this will work in the mathscipt node or not. From discussions I have read mathscrip does not allow you to call other files. If you have any suggestions on how to achieve baseline removal in labview it would be greatly appreciated.

Ray
0 Kudos
Message 19 of 22
(4,110 Views)

Hi Ray,

I am not too familiar with the mathscript node, that question would be better suited to a LabVIEW forum. I can however offer this documentation discussing the filtering of your ECG signal using LabVIEW. If you do not have the toolkits it should be possible to filter your data using the Vis found on the signal processing palette>>Filters. I hope this helps!

JaceD
Signal Sources Product Support Engineer
National Instruments
0 Kudos
Message 20 of 22
(4,083 Views)