Admin Production ni-theme
Current Publication

AllocFIRFilterPtr

LabWindows/CVI

AllocFIRFilterPtr

Advanced Analysis Library Only

FIRCoefPtr AllocFIRFilterPtr (void);

Purpose

Allocates and initializes the FIR filterInformation structure. This function returns a pointer to the filter structure for use with the interpolated FIR filter coefficient design calls.

Parameters

None.

Return Value

Name Type Description
filterInformation FIRCoefPtr Pointer to the FIR interpolated filter structure that contains the filter coefficients and the internal filter information. Call this function to allocate filterInformation before you call the FIR interpolated filter design functions.

When an error occurs, filterInformation is zero.

The definition of the filter structure is as follows:

typedef struct {

int fltType; /* type of filter (lp, hp, bp, bs) */
int interp /* interpolation factor. The model filter is stretched by interp times */
int Mtaps; /* size of *Mtaps. */
double *Mcoef; /* coefficients of the model filter. */
int Itaps; /* size of *Itaps. */
double *Icoef; /* coefficients of the filter image suppressor. */
} FIRCoefStruct, *FIRCoefPtr;

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 2012 and later