Admin Production ni-theme
Current Publication

FFT2D

LabWindows/CVI

FFT2D

Advanced Analysis Library Only

AnalysisLibErrType FFT2D (void *timeDomainSignal, ssize_t numberOfRows, ssize_t numberOfColumns, ssize_t numberOfRowsForFFT, ssize_t numberOfColumnsForFFT, int shift, void *fft);

Purpose

Computes the Fast Fourier Transform (FFT) of a 2D time-domain signal.

Parameters

Input
Name Type Description
timeDomainSignal void * The real time-domain signal.
numberOfRows ssize_t The number of rows in timeDomainSignal.
numberOfColumns ssize_t The number of columns in timeDomainSignal.
numberOfRowsForFFT ssize_t The number of rows on which to perform the FFT. If numberOfRowsForFFT does not equal numberOfRows, this function truncates timeDomainSignal or pads timeDomainSignal with zeros to create a numberOfRowsForFFT by numberOfColumnsForFFT matrix for which it calculates the FFT. If numberOfRowsForFFT is less than 1, this function uses numberOfRows for this parameter.
numberOfColumnsForFFT ssize_t The number of columns on which to perform the FFT. If numberOfColumnsForFFT does not equal numberOfColumns, this function truncates timeDomainSignal or pads timeDomainSignal with zeros to create a numberOfRowsForFFT by numberOfColumnsForFFT matrix for which it calculates the FFT. If numberOfColumnsForFFT is less than 1, this function uses numberOfColumns for this parameter.
shift int Specifies whether to shift the DC component to the center of the FFT result. shift must be one of the following values:
  • FALSE (0): Ordinary FFT. The first element of fft is the DC component.
  • TRUE (1): DC-centered FFT.
Output
Name Type Description
FFT void * The FFT of the time-domain signal.

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