Reputation: 305
I am trying to make a bandpass FIR filter in Labview. I have created two sine waves (one with freq = 1Hz, amplitude = 1 and the second with freq=50, amplitude = 0.1) that I added together.
And now I want to create a bandpass filter to filter out the 50Hz signal (I know that its possible use just low pass filter, but I need to use bandpass filter). I set the low cutoff freq to 0.01 and high cutoff freq to 3, but the result is witout any change.
On top of that when I change the parameters I get no change.
When I use the butterworth filter I get the result that I am looking for.
This is my code:
What am I missing?
Upvotes: 1
Views: 2163
Reputation: 2669
You say you need to use a Bandpass filter, but in your VI you are using a Bandstop filter. Not sure which of the two is the error. Just as a recap:
The Butterworth part has nothing to do with high, low or bandpass but with how fast the fall-off is after the set frequency.
See the image for a working vi and results.
Hope this helps.
Upvotes: 1