FFT with complex-value input signal
The sample illustrates the implementation of a spectrum calculation with the function block FB_CMA_ComplexFFT. In contrast to the function block FB_CMA_RealFFT, the data type LCOMPLEX is used for the required multi-array.
The sample is available for download from here:
ComplexFFT_Sample.zip
Block diagram
Program parameters
The table below shows a list of important parameters for the configuration of the
ComplexFFT function block.
Type code | eMA_TypeCode_LCOMPLEX |
FFT length | 2048 |
Forward calculation | TRUE |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4018 | PC or CX (x86, x64) | Tc3_CM, Tc3_CM_Base, Tc3_MultiArray |