LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Filters / Moving average / Getting VI to run

I'm building an ECG Monitor and need help. What I'm trying to set up is a filter system with a band-stop to remove 60 Hz noise and a low-pass filter to remove high frequency noise (> 150). I would like to display a moving average set between 4 consecutive R waves, using peak detection.

In addition, I set up an LED alarm for high and low heart rate that turns off when the condition disappears.

Any ideas for troubleshooting this VI and getting it to run? VI is below:

0 Kudos
Message 1 of 4
(2,683 Views)

You are treating the output of the filter as a waveform (it is a dynamic data type). Use the conversion correctly, and you should be all set, good luck.

 

Capture2.PNG


Kudos are the best way to say thanks 🙂
0 Kudos
Message 2 of 4
(2,657 Views)

Sorry, how do I find the part that does the conversion. Im having trouble finding it.

0 Kudos
Message 3 of 4
(2,649 Views)

You'd use "Convert from Dynamic Data" and then right click, and select Single Waveform as shown below. Also attached VI with that conversion.

 

As a note, There are probably better ways to do what you're trying to do. I suggest using Signal Processing toolbox, and building a logic around it. Good luck!

 

Capture.PNG


Kudos are the best way to say thanks 🙂
0 Kudos
Message 4 of 4
(2,647 Views)