Advanced Analysis Library Only
AnalysisLibErrType ScaledWindow (double XArray[], int numberOfElements, int windowType, WindowConst *windowConstants);
![]() |
Note This function is obsolete. National Instruments recommends that you use ScaledWindowEx instead. |
Applies a scaled window to the time-domain signal and outputs window constants for further analysis.
The windowed time-domain signal is scaled so that when ScaledWindow calculates the power or amplitude spectrum of the windowed waveform, all windows provide the same level within the accuracy constraints of the window. ScaledWindow also returns important window constants for the window you select. These constants are useful when you use functions that perform computations on the power spectrum, such as PowerFrequencyEstimate.
ScaledWindow can perform this operation in place; that is, the input and output arrays can be the same.
Input | ||||||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||||||
numberOfElements | integer | Number of elements in the input array. | ||||||||||||||||||||||
windowType | integer | Type of the window function to apply to the input signal. windowType has the values shown in the following table.
|
||||||||||||||||||||||
Output | ||||||||||||||||||||||||
Name | Type | Description | ||||||||||||||||||||||
XArray | double-precision array | As an input parameter, the input array that contains the time-domain signal to window. As an output parameter, the windowed version of the input array. |
||||||||||||||||||||||
windowConstants | WindowConst | Pointer to a structure that contains the following useful constants for the selected window:
typedef struct { |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |