06-09-2004 05:49 AM
06-09-2004 09:05 AM
03-13-2015 01:35 PM
Hello,
I am using a butterworth filter as a bandpass filter. Sampling frequency 10kHz, lower cutoff 390Hz and higher cutoff 420 Hz. The output of the filter is heavily attenuated. It should be around 0.4V but its 0.07. Does the filter have a gain?
03-13-2015 05:54 PM
Filters have attenuation and can have gain when it is an active filter.
The effect you are seeing is in part due to the very narrow bandwidth. Filters are usually specified in terms of normailzed bandwidth and the frequency scale is usually logarithmic. From graph in a filter design book the attenuation of a normalized 3-pole Butterworth low pass filter is 3 dB at 1, 1 dB at 0.8, and about 18 dB at 2. Translating those figures to your frequencies gives: Center frequency = 404.72 Hz (geometric mean of upper and lower cutoffs). 390/404.72 = 0.964 normalized and 402/404.72 = 1.038 normalized. So your bandwidth in terms of fractional frequency is quite narrow. It may also be due to the nature of your signal which I have not seen.
If you think in terms of overlapping lowpass and highpass filters with 3dB cutoffs at 390 and 420 Hz, the attenuation at the center frequency will be closer to 3 dB than to zero.
Tha actual filter implementation in LV works quite well. I removed your DAQmx VIs and used Sine Waveform.vi as a signal source. You can see the transient effects in the filters as the frequency of the signal is changed. Note that at 404.72 Hz the output signal is attenuated only a very small fraction of a decibel and that the attenuation is -3 dB at 390 and 420 Hz.
Lynn