AlazarFFTSetWindowFunction#
Function Syntax#
-
RETURN_CODE AlazarFFTSetWindowFunction(dsp_module_handle dspHandle, U32 samplesPerRecord, float *realWindowArray, float *imagWindowArray)#
Sets the window function to use with an on-FPGA FFT module.
Downloads a window function to an AlazarTech digitizer’s memory. This window function will be used during all subsequent acquisitions that use the on-FPGA DSP module.
This function should be called before AlazarFFTSetup(). It does not have to be called every time an acquisition is done. It can be located in the board configuration section.
Warning
Please note that the window function is not compatible with the FFT verification mode.
- Parameters:
dspHandle – The handle of the FFT DSP module to set the window function for.
samplesPerRecord – The number of samples in the window function array.
realWindowArray – The real window function array. Passing
NULL
is equivalent to passing an array filled with ones. The values of the window function must be in the interval [-1, 1].imagWindowArray – The imaginary window function array. Passing
NULL
is equivalent to passing an array filled with zeros. The values of the window function must be in the interval [-1, 1].