IIR Filter with I.C. PtByPt VI

Owning Palette: Filters PtByPt VIs

Requires: Full Development System

Filters x using the IIR filter specified by Reverse Coefficients and Forward Coefficients.

This VI is similar to the IIR Filter with I.C. VI.

Note  By default, reentrant execution is enabled in all Point By Point VIs.

Details  

 Add to the block diagram  Find on the palette
initialize, when TRUE, initializes the internal state of the VI.
x is the input signal to filter.
Reverse Coefficients is the reverse coefficients of the filter design. This VI does not place any restrictions on the coefficient arrays. If both coefficient arrays are empty, the VI performs no filtering and sets Filtered X to the value of X.
Forward Coefficients is the forward coefficients of the filter design.
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 Forward Coefficients array.
Initial Y Conditions contains the most recent outputs. The most recent output 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 Reverse Coefficients array.
Filtered x contains the result of filtering the input sequence x by convolution.
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.
Final Y Conditions contains the most recent outputs. You can use Final Y Conditions as Initial Y Conditions on the next call to this VI.

IIR Filter with I.C. PtByPt Details

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

where y is Filtered X, Nb is the number of Forward Coefficients, bj is Forward Coefficients, Na is the number of Reverse Coefficients, and ak is Reverse Coefficients.

The filter initialization uses the following equations.

y[i] = yic[Na + i – 1]  for i < 0

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

where yic is the array of Initial Y Conditions and xic is the array of Initial X Conditions.

Note  You can use the IIR Filter PtByPt VI to perform FIR filtering by passing an empty array into Reverse Coefficients or by leaving Reverse Coefficients unwired.