ST_CM_AnalyticSignal_InitPars

Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.

TYPE ST_CM_AnalyticSignal_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
    nFFT_Length    : UDINT := 512;    (* Length of FFT. *)
    nWindowLength  : UDINT := 400;    (* Length of analysis window. *)
    nChannels      : UDINT := 1;      (* Number of channels. *)
END_STRUCT
END_TYPE
ST_CM_AnalyticSignal_InitPars 1:

Avoiding artefacts

The value of nFFT_Length must be equal or greater the value of nWindowLength. In order to avoid artefacts in the calculation, nFFT_Length should be at least 25 larger than nWindowLength. An increase in the FFT length in relation to the window length makes sense with this function block in order to avoid circular aliasing.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.25

PC or CX (x86, x64)

Tc3_CM_Base