06-13-2010 09:36 AM
Hello guys,
I am doing a project on an ECG analyzer. I currently am up to where I filter out the signal and then I have to count the number of R-R peaks, so that I can detect the heart beats per minute. However, I do not seem to be getting any signal coming out from my peak detector. I am not quite sure what the issue. Can any of you guys assist? Thanks.
06-13-2010 10:11 AM - edited 06-13-2010 10:13 AM
could you attach the file you are reading from? The issue could be with that. Also, no need for a local variable, just split the sampling frequency wire. You are creating a race condition. If the user updates the control, there is a possibility (which is more than likely) that the local variable will be read first and then if the control value changes you will get a different value going into your filter than that which is used in the division. To see an example, use highlight execution and change the sampling frequency value AFTER you see that the local is read. You will see the variable value doesn't equal the control value going into your filter.
Also, the index array function is expandable. You don't need two of them, you can instead click and drag the bottom of the VI and it will expand to take more indexing inputs. Hover your mouse over the VI and you will see.
That's just some cleanup stuff. Like I said, post your text file if you can. Thanks!
06-13-2010 10:17 AM
06-13-2010 10:27 AM
06-14-2010 01:21 AM