06-11-2010 11:32 AM
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.
06-11-2010 11:46 AM
06-11-2010 12:05 PM
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.
06-12-2010 05:54 AM
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
06-12-2010 06:11 AM
06-12-2010 06:25 AM
06-12-2010 10:50 AM
06-13-2010 09:37 AM
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!
06-13-2010 09:38 AM
06-13-2010 11:08 AM