FIR Filter with I.C. 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. You can use this VI to process blocks of continuous data. 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 with I.C. (DBL)

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.
Initial X Conditions contains the most recent inputs. The most recent prior input should be the last element in the array. The number of elements in this array should be one less than the number of elements in the FIR Coefficients array.
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.
Final X Conditions contains the most recent inputs. You can use Final X Conditions as Initial X Conditions on the next call to this VI.

FIR Filter with I.C. (CDB)

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.
Initial X Conditions contains the most recent inputs. The most recent prior input should be the last element in the array. The number of elements in this array should be one less than the number of elements in the FIR Coefficients array.
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.
Final X Conditions contains the most recent inputs. You can use Final X Conditions as Initial X Conditions on the next call to this VI.

FIR Filter with I.C. Details

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

for (i≥0)

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

The filter initialization uses the following equation.

xi = xic[Nb + i – 1] for i < 0

where xic is the array of Initial X Conditions.