WindFIR_Filter
Advanced Analysis Library Only
AnalysisLibErrType WindFIR_Filter (int filterType, double samplingFrequency, double lowerCutoffFreq, double upperCutoffFreq, int numberOfCoefficients, int windowType, double windowParameter, double coefficients[]);
Purpose
Generates windowed FIR filter coefficients. This function computes only FIR coefficients. You can call a convolution function on the computed coefficients and the signal to perform actual data filtering.
Parameters
Input | ||
Name | Type | Description |
filterType | int | The type of filter. filterType must be one of the following values:
|
samplingFrequency | double | Sampling frequency, in Hz. |
lowerCutoffFreq | double | The cutoff frequency for LOWPASS or HIGHPASS filters, or the low cutoff frequency for BANDPASS or BANDSTOP filters, in Hz. |
upperCutoffFreq | double | The high cutoff frequency for BANDPASS or BANDSTOP filters. This parameter is not referenced if filterType is LOWPASS or HIGHPASS. |
numberOfCoefficients | int | The total number of FIR filter coefficients. |
windowType | int | The type of window to apply. windowType must be one of the following values:
|
windowParameter | double | The window parameter. This parameter is referenced only if windowType is one of the following values:
|
Output | ||
Name | Type | Description |
coefficients | double [] | The computed windowed FIR coefficients. |
Return Value
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |
Additional Information
Library: Advanced Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later