LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ecg

Please stop acting like a nestling screaming for foodSmiley Mad. You have all equipment you need at your school. You have not been given this assignment else. You said you needed help with your homework. Well first of all you must emphasize on the work part, in the word homework. No one in this forum will do the work for you. You have to do your homework by yourself. So hiding your head in the sand like an ostrich will not do you any good. And the clock is ticking, soon your homework will be due( tick tack,tick tack: Smiley Very Happy )Just to help you out some I have included a 5 seconds ECG signal sampled with 200 Hz. You can use this to simulate an ECG signal. As I have mentioned before you do not need to update your heart rate more often than 1 time pr sec. start with building a simulator and use my signal as a base for your 1 seconds update. You can ad daq reading then analysis works well. By doing this you may avoid flunking big time in this assignment. If you have a working model you may pass this assignment. Also remember IF  you manage to solve your analysis, so you can start on the data collection part. A higher sample rate like 1 to 2 KHz will be more preferable for your filter. With 1 KHz sample rate you will only collect signal in the 0-500 Hz range
Message Edited by t06afre on 12-11-2008 06:12 AM
Message Edited by t06afre on 12-11-2008 06:13 AM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 11 of 60
(2,937 Views)

thanks for all that. i know i've finished my homework by my self i've try so hard to finish my project but it's stiil not work but i don't  just giveup like that. my teacher says  that frequency of the heart is 60 hz  and the  sample  rate  is  multiple of the frequency of heart that is  2,3,5,7,9 . i try  to make  it  but  when i simulate with labview when it's pass bandstop filter and thershold detector is 0. why it happen ?

what i must  use to analys the heart beat, peak detector or thershold detector. and the filter is bandstop filter or other filter?

in this forum i've been suggest from the other user to use some of them but i confuse what is really need to make this project work well?

tanx for all help bro. i'll do my best.

tanx  

0 Kudos
Message 12 of 60
(2,901 Views)
STOP worrying yourself about the analysis. Get the acquisition correct first. You HAVE to put your data acqusition function inside a loop or you have to use the acquisition function that takes mulitple readings. You CANNOT do any analysis on a single point like you are acquiring now. Get the basics first. When you have a hearttbeat displayed in a GRAPH - NOT a CHART, you will be much closed than you are now.
0 Kudos
Message 13 of 60
(2,894 Views)

tanx for all that.

it's my design is correct or not through this website

http://www.ese.upenn.edu/rca/software/Labview/Cardiacvi/cardiacvi.html
how make connections with array max min use set limit?

tanx 

0 Kudos
Message 14 of 60
(2,872 Views)

You are not listening to the people trying to help you.  We told you several days ago that the way you are trying to acquire data will not work and told you to forget about everything else until you can acquire the signal.  You have yet to do this and show us that you have done it.  I even gave you the exact name of the MCC VIs which will allow you to acquire the signal. 

 

The website you pointed us to doesn't look like your design, it looks like someone else's.  Again, you are not even attempting to try to understand what you need to do.  I have seen over several months, your posts center on theis project and always ask for someone to do it for you.  You will not find someone here who will write your code and do your homework for you.  We will help you.  We have tried to help you.  You don't want to do the work necessary.  We are trying to guide you through the proper process to attack the problem.  Get your signal first.  Post here when you are correctly collecting data from your circuit, then tell us why you are having problems analyzing the signal with real data included.  People here will be more than happy to help you if you are willing to put in some effort.

 

I am sure that the basics of what is on that page are correct since it is an assignment. But none of it matters because you have to signal to use.

Message Edited by Matthew Kelton on 12-12-2008 02:33 PM
Message 15 of 60
(2,863 Views)
Why in the earth did you start on a School of Engineering? It took me 35 minutes to make this crude simulator. I guess you have spent 10 times more than that just goggling for an easy way out. The funny thing is that I used about 70 percent of your analysis code. I have used separated the highpass and lowpass filter. So I can turn them on or off. I have also used the after filter waveform chart as a memory for processed data. This way I have a built in FIFO. But I guess you do not understand this. This simulator has an upper limit at ca 93 beats pr minute. Find out for your self why. Frequency of the heart is 60 Hz. what do you mean by that remark? I am glad my heart do not have rate equal to 300 beats pr minute. I think the American Heart Association recommends an analog bandwidth up to ca 150Hz for adults. As mentioned before use a sample rate at least 10 times higher. The R deflections, may have significant frequency content higher up to and higher than 60 Hz. But this is not the same as the frequency is 60 Hz. The website for your project is dated 2/12/99. So this assignment has been given to students for almost 10 year. So come on how difficult can this be. It is in fact a cool assignment. But you mismanage big time And no, you can not have the PW before you actually produce something reasonable code by yourself


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Download All
0 Kudos
Message 16 of 60
(2,824 Views)

t06afre,

 

Lets keep the insults out of the postings, please. I think you have crossed the line with that comment of yours.

 

Your ecg VI does not work. On top of that, it's password protected so no one can see what is wrong or fix it. Nor is it helpful to the op since he is NOT trying to simulate. He is trying to acquire with a DAQ board. If you have experience with this DAQ board, maybe you could post an example of that. Your comment about a 60 hz heartbeat equalling 300 beats per minute is very confusing. I'm certain the 60 hz is referring to the number of beats per minute so I don't know why you multiplied that by 5.

 

marp84,

 

I don't have the hardware you are using or the driver but start with something simple like the code below. It shows '?' because I do not have the driver and so I cannot do some of the wiring. Wire from the ouptu of ToEng to the graph outside the loop. This is a pretty crude way of taking multiple samples and the 1msec sample rate is not going to be very accurate but it will be much better than you have now. The best thing to do is use the correct function in the DAQ driver.
Message 17 of 60
(2,805 Views)

Dear Dennis I do not know your occupation. But I worked for many years at a school of engineering in Sweden. During that time I cared a lot for my students. If a student had some problems I did not hesitate using my spare time to help that student, if he/she was willing to work and learn. But a student coasting did not get much help from me. So let us say marp84 was one of my students and came to me with the problem, I can not get anything useful from my daqcard. I or someone working on the lab would have helped and advised him/she no problem at all. But I would not have served the lab assignment complete on a silver-plate. Maybe I am wrong but marp84 have all the signs of a person hoping to coasting through school of engineering. The only thing he so far has asked for is only "help can someone do my homework for me" and that makes me angry. I have no sympathy for such attitude. But I shall stop the insults I have said everything I need. And I also think the last post by Matthew K was very descriptive. I am also sorry that the ecg.vi does not work. I downloaded it from this forum and it worked well. But I am running labview 8.6. But it was saved as an 8.0 VI. It is not the first time someone have experienced problem with a VI I have saved for previous version. Which version of LV do you use Dennis? The VI was quite simple so I can make it LV 7.0 if you want. The reason I posted with password was so marp84 should get a glimpse of the solution. And hopefully get some useful hints to the finishing line. Without me actually doing his work for him. The example he posted first actually had some good thoughts. That was the reason for posting the ecg recording so he could debug this section. I am NOT the bully you think I am Dennis. But again as I had hoped, marp84 has not even posted some question regarding this. For example I was wrong of the recording length. I said it was 5 seconds it is 25 😉 Sorry for the error in my calculations. But I was watching my 3 year old nephew. He and my kids were arguing over some Lego parts so I had to act. If the hearts pump at 60 Hz so is that equal to 60*60=3600 BPM. So the 6 in 3600 was gone.

@marp84 You are a student, and as a student you are self responsible for your own learning. But as a student you have also some rights. The topic of this assignment is not to debug daq card drivers or settings. So if you really think something is wrong with the daq card, ask your teacher or someone working on the lab for help. Give them a list describing what you have done so far and the error messages you have received. That is not the same as saying "help can someone do my homework for me"



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 18 of 60
(2,792 Views)

Since I do have the MCC VIs, here is the VI you should be using to collect your data signal.  The same one I mentioned several days ago.  Integrate it into your original VI, plot the output array to see your signal.

 

 

Message Edited by Matthew Kelton on 12-13-2008 03:01 PM
0 Kudos
Message 19 of 60
(2,788 Views)

The last thing I need is your VI. It has nothing to do with the LabVIEW version. It generates the error below.

 

I don't get the impression at all that marp84 is 'coasting'. Because he has a measurement computing DAQ board, he/she has not gotten much help in how to acquire a signal.I just think he/she is just generally confused about the principals behind LabVIEW and data acquisition. 

 

I don't know about your school of engineering, but here in the United States, there are separate degree programs for Biomedical Engineering. The local one is part of the chemical engineering department and the students don't necessarily get much exposure to programming, etc.

0 Kudos
Message 20 of 60
(2,759 Views)