Filters the input data sequence, X, using the set of windowed FIR filter coefficients specified by the sampling freq: fs, low cutoff freq: fl, high cutoff freq: fh, and number of taps. Smoothing windows decrease ripple in the filter passband and improve the ability of the filter to attenuate frequency components in the filter stopband.
![]() |
filter type specifies the passband of the filter.
|
||||||||||||||||||
![]() |
X is the input signal to be filtered. | ||||||||||||||||||
![]() |
sampling freq: fs is the sampling frequency and must be greater than zero. The default is 1.0. If it is less than or equal to zero, the VI sets Filtered Data to an empty array and returns an error. | ||||||||||||||||||
![]() |
low cutoff freq: fl is the low cutoff frequency and must observe the Nyquist criterion where
|
||||||||||||||||||
![]() |
high cutoff freq: fh is the high cutoff frequency. The VI ignores this parameter when filter type is 0 (Lowpass) or 1 (Highpass). When filter type is 2 (Bandpass) or 3 (Bandstop), high cutoff freq: fh must be greater than low cutoff freq: fl. | ||||||||||||||||||
![]() |
taps determines the total number of FIR coefficients and must be greater than zero. The default is 25. If taps is less than or equal to 0, the VI sets Filtered Data to an empty array and returns an error. taps must be odd for highpass and bandstop filters. | ||||||||||||||||||
![]() |
window specifies the type of smoothing window.
|
||||||||||||||||||
![]() |
Filtered Data is the output array of filtered samples. Filtered Data has an associated index delay caused by the convolution operation.
The delay is given by
|
||||||||||||||||||
![]() |
error returns any error or warning from the VI. Refer to Signal Processing Error Codes for more information about these conditions. |