Admin Production ni-theme
Current Publication

FlatTopWin

LabWindows/CVI

FlatTopWin

Advanced Analysis Library Only

AnalysisLibErrType FlatTopWin (double arrayX[], ssize_t numberOfElements);

Purpose

Applies a flat top window to a real signal. If y represents the output sequence, FlatTopWin obtains the elements of y using the following equation:

yi = xi (0.215578948 - 0.416631580cos(w) + 0.277263158cos(2w) - 0.083578947cos(3w) + 0.006947368cos(4w))

for i = 0, 1, 2, ..., n – 1

where n is the number of elements in arrayX.

This function performs the window operation in place; that is, the windowed data replaces the input data.

Parameters

Input
Name Type Description
numberOfElements ssize_t Number of elements in arrayX.
Output
Name Type Description
arrayX double [] On input, the input signal.

On output, this parameter returns the input signal with a flat top window applied.

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 3.1 and later