ST_CM_SlidingDFT_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_SlidingDFT_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nWindowLength : UDINT := 1000; (* Length of analysis window. *)
nBins : UDINT := 1; (* Number of spectral bins. *)
fDampingFactor : LREAL := 0.995; (* Damping factor for SDFT. *)
nChannels : UDINT := 1; (* Number of channels. *)
END_STRUCT
END_TYPEnWindowLengthis the length of the analysis window in samples. The length must be greater than one and an even number.nBinsis the number of spectral values to be calculated. The corresponding indices (k := f / fSampleRate / nWindowLength) must be configured after initialization using theConfigure()method.fDampingFactordefines the value of the damping parameter of the recursion formula.nChannelsdefines the number of independent channels. This must be greater than zero.
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM_Base |