Filters signals in either single or multiple waveforms. If you are filtering multiple waveforms, the VI maintains separate filter states for each waveform. The data types you wire to the signal in and IIR filter specifications inputs determine the polymorphic instance to use.
![]() | Note Do not use the single-channel instance of this VI for continuous multiple-channel processing. |
Use the pull-down menu to select an instance of this VI.

![]() |
reset filter forces the filter coefficients to be redesigned and the internal filter states to be reset to zero when it is TRUE. | ||||||||||||||||||||||||||||||||||
![]() |
signal in is the waveform data you want to filter for channel 1. | ||||||||||||||||||||||||||||||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||||||||||||||||||||||||||||||
![]() |
IIR filter specifications is the cluster containing design parameters for an IIR filter.
| ||||||||||||||||||||||||||||||||||
![]() |
optional IIR filter specifications is a cluster containing information necessary to compute the order of an IIR filter.
| ||||||||||||||||||||||||||||||||||
![]() |
signal out is the generated waveform. | ||||||||||||||||||||||||||||||||||
![]() |
filter information contains the magnitude and phase responses of the filter in a cluster that is ready to graph. filter information also contains the order of the filter.
| ||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
reset filters forces the filter coefficients to be redesigned and the internal filter states to be reset to zero for each input waveform when it is TRUE. | ||||||||||||||||||||||||||||||||||
![]() |
signal(s) in is an array of waveforms containing the signals to filter. | ||||||||||||||||||||||||||||||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||||||||||||||||||||||||||||||
![]() |
IIR filter specifications is the cluster containing design parameters for an IIR filter.
| ||||||||||||||||||||||||||||||||||
![]() |
optional IIR filter specifications is a cluster containing information necessary to compute the order of an IIR filter.
| ||||||||||||||||||||||||||||||||||
![]() |
signal(s) out is an array of signals that have been filtered according to the filter specifications controls. | ||||||||||||||||||||||||||||||||||
![]() |
filter information contains the magnitude and phase responses of the filter in a cluster that is ready to graph. filter information also contains the order of the filter.
| ||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|

![]() |
reset filters forces the filter coefficients to be redesigned and the internal filter states to be reset to zero for each input waveform when it is TRUE. | ||||||||||||||||||||||||||||||||||||
![]() |
signal(s) in is an array of waveforms containing the signals to filter. | ||||||||||||||||||||||||||||||||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||||||||||||||||||||||||||||||||
![]() |
IIR filter specifications is an array of filter parameters. The size of this array must be the same as the number of waveforms in the signal(s) in array. The default is an empty array.
| ||||||||||||||||||||||||||||||||||||
![]() |
optional IIR filter specifications is an array of additional filter parameters. This array must either be empty or must have the same size as the IIR filter specifications array.
| ||||||||||||||||||||||||||||||||||||
![]() |
signal(s) out is an array of signals that have been filtered according to the filter specifications controls. | ||||||||||||||||||||||||||||||||||||
![]() |
filter information contains the magnitude and phase responses of the filter in a cluster that is ready to graph. filter information also contains the order of the filter.
| ||||||||||||||||||||||||||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|
Digital IIR Filter filters the signal(s) in a waveform array according to the IIR filter specifications and optional IIR filter specifications arrays. If you are filtering multiple waveforms, the VI applies a different filter to each of the input waveforms and maintains a separate filter state for each waveform. The VI uses optional IIR filter specifications only if Filter Order is less than or equal to zero. You do not need to wire reset filter. This VI resets itself the first time it is called.
The Digital IIR Filter VI can perform single-channel measurements in both one-shot mode (single call) and continuous mode (multiple calls with history). It can perform multichannel measurements only in one-shot mode. If you want to make multiple-channel measurements in continuous mode, either use the multi-channel instance of this VI or use one instance of this VI per channel.
The single-channel instance of this VI is primarily intended for continuous processing of a single channel. Do not generalize this behavior to the multi-channel case, typically by using this single-channel VI in a for loop to continuously process multiple channels by indexing an array of waveforms.
The single-channel instance of this VI maintains internal state information for a single channel only. Calling this VI to process another channel without clearing the history using the reset filter control results in an unexpected behavior of this VI because the internal state information is passed from one channel to another.
Refer to the following VIs for examples of using the Digital IIR Filter VI: