FIR Filter VI

Owning Palette: Advanced FIR Filtering VIs

Requires: Full Development System

Filters the input sequence X using the direct-form FIR filter specified by FIR Coefficients. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.

Details  

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

FIR Filter (DBL)

init/cont controls the initialization of the internal states. The default is FALSE. The first time this VI runs or if init/cont is FALSE, LabVIEW initializes the internal states to 0. If init/cont is TRUE, LabVIEW initializes the internal states to the final states from the previous call to this instance of this VI. To process a large data sequence that consists of smaller blocks, set this input to FALSE for the first block and to TRUE for continuous filtering of all remaining blocks.
X is the input array of samples to filter.
FIR Coefficients is the coefficients of the FIR filter. If FIR Coefficients is unwired, the VI sets Filtered X to the value of X and does not perform filtering.
Filtered X is the output array of filtered samples.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

FIR Filter (CDB)

init/cont controls the initialization of the internal states. The default is FALSE. The first time this VI runs or if init/cont is FALSE, LabVIEW initializes the internal states to 0. If init/cont is TRUE, LabVIEW initializes the internal states to the final states from the previous call to this instance of this VI. To process a large data sequence that consists of smaller blocks, set this input to FALSE for the first block and to TRUE for continuous filtering of all remaining blocks.
X is the input array of samples to filter.
FIR Coefficients is the coefficients of the FIR filter. If FIR Coefficients is unwired, the VI sets Filtered X to the value of X and does not perform filtering.
Filtered X is the output array of filtered samples.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

FIR Filter Details

The FIR Filter VI obtains the elements of Filtered X using the following equation.

where y is Filtered X, Nb is the number of FIR Coefficients, and bj is FIR Coefficients.