Advanced Analysis Library Only
AnalysisLibErrType CxInvFFTEx (NIComplexNumber fft[], int numberOfElements, PFFTTable fftTable, int shifted, NIComplexNumber timeDomainSignal[]);
Computes the complex inverse Fast Fourier Transform (FFT) of an input sequence. National Instruments recommends you use this function instead of InvFFT.
If you must perform the same size FFT repeatedly, you can use CreateFFTTable to create the FFT table and then pass the table you created to CxInvFFTEx to speed computation. If you pass NULL for fftTable, the function creates the table internally and frees the table when it returns.
The following code is the psuedocode for calling FFT routines:
N=1024; //Set length of signal tbl=CreateFFTTable(N); //Create N-point table for(;;){ Acquire_N_Point_Signal(signal); //Acquire N points FFT(signal,..., tbl,...); //Perform FFT or IFFT } DestroyFFTTable(tbl); //End, release FFT table resources
Input | ||
Name | Type | Description |
fft | complex number array | The input frequency domain sequence. |
numberOfElements | integer | The number of elements in fft. |
fftTable | PFFTTable | The FFT table created with CreateFFTTable. You can pass NULL for this parameter if you do not have a reusable FFT table. |
shifted | integer | Specifies whether fft is DC-centered. shifted must be one of the following values:
|
Output | ||
Name | Type | Description |
timeDomainSignal | complex number array | The complex time-domain signal. |
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |