LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ECG Analyzer Help

Hello,

 

I am doing an assignment on an ECG analyzer.  First, I have "generated" an ECG signal by just making it read from data points because I figured this would be the easiest transition for when I have to actually test my program with actual hardware later.I am pretty much just looping the same signal over and over, would it be better to make my own signal? 

My question is, I am having problems with my filter when I am using my datapoints for the waveform.  The filtered signal doesn't look too clean.  Is it because I am using a butterworth filter?  I am not sure which frequency and order I should be using.  Also, does anyone have any suggestions on using a heartbeat detector?  I figure that I can use the peak to peak detector, and then feed that into a program that will then do the analysis based on the number of beats per minute.  Please advise...attached is my current VI with the two data points that I am using.  Thanks.

 

Also, is the way that I am reading in my data efficient?  I sometimes find it difficult to read certain datapoints into my program.  

Download All
0 Kudos
Message 1 of 17
(4,232 Views)
You should replace the "Fract/Exp String To Number Function" with the "Spreadsheet String To Array Function" as a start. Since you are new to Labview. Always then you start a Labview session. Go to help in the toolbar. The enable the Show Context Help option.  


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

You've got some really fundamental problems. You are converting a string to a single numeric and then converting to an array. No matter what, you only have a single element in the array and trying to filter a single point or finding a min/max is just silly.

 

Outside the loop, read the entire file with the Read From Spreadsheet function. You can then filter that and distplay in a graph. Since you would have the entire waveform, you would not require a loop. If you wanted to simulate single point acquisition, then simply index the waveform inside the loop. You would then use the PointByPoint functions.

0 Kudos
Message 3 of 17
(4,218 Views)

Go to this post http://forums.ni.com/ni/board/message?board.id=170&message.id=412111&query.id=9546898#M412111 and find the accepted solution. Follow the instructions. Since you use LAbview 8.5, you must change the 8.6 part of the install directory to fit your Labview version. Download the VI I have posted here. And insert the ECG simulator as shown in the picture inside the VI I have posted here. You can configure the Express VI by double clicking on it

Good luck

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 17
(4,194 Views)
I can install t hat 8.6 version without corrupting or being able to revert back to 8.5?  Thanks for the help.
0 Kudos
Message 5 of 17
(4,188 Views)
All is saved in Labview 8.5 or later. Just give it try


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 6 of 17
(4,184 Views)
Thanks again.  One more question, for this simulation, how do I know the parameters to put in my butterworth filter in order to receive a clean reading?  Should I just play around with teh values?  I am unsure as to how changing the order and the frequency.  Please advise, thanks.
0 Kudos
Message 7 of 17
(4,164 Views)

Hey Guys,

 

thanks for your help.  i was wondering if any of you had knew anything about peak detectors?  I am trying to detect a heartbeat coming from my filter.  for some reason my program does not receive anything.  please check, thanks!

0 Kudos
Message 8 of 17
(4,138 Views)
Ahh forgot to attach VI, sorry for repost.
0 Kudos
Message 9 of 17
(4,137 Views)
Sorry for(imstuck)...good point, sorry for the repost, again.  I just was't sure if I would actually receive some help with an old post.  But here I am attaching the datapoints that I am reading from as well.  Thanks for the help.
Download All
0 Kudos
Message 10 of 17
(4,122 Views)