Admin Production ni-theme
Current Publication

ResetIIRFilter

LabWindows/CVI

ResetIIRFilter

Advanced Analysis Library Only

void ResetIIRFilter (IIRFilterPtr filterInformation);

Purpose

Sets the reset flag in the filterInfo filter structure so that the internal filter state information is reset to zero before the next cascade IIR filtering operation.

Example Code

/* How to use function ResetIIRFilter. */
double fs, fl, fh, x[256], y[256];
int type, order, n;
IIRFilterPtr filterInfo;
n = 256;
fs = 1000.0;
fl = 200.0;
order = 5;
type = 0; /* lowpass */
filterInfo = AllocIIRFilterPtr(type, order);
if(filterInfo!=0) {

Bw_CascadeCoef(fs, fl, fh, filterInfo);
Uniform(n, 17, x);
IIRCascadeFiltering(x, n, filterInfo, y);
Uniform(n,20,x);
ResetIIRFilter(filterInfo); /* Reset the filter for a new data set. */
IIRCascadeFiltering(x, n, filterInfo, y);
FreeIIRFilterPtr(filterInfo);

}

Parameters

Input
Name Type Description
filterInformation IIRFilterPtr Pointer to the filter structure that contains the filter coefficients and the internal filter information.

Refer to the AllocIIRFilterPtr function description for more information about the filter structure.

Return Value

None.

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later