ST_CM_MovingMoments_InitPars
Function-block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_MovingMoments_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nChannels : UDINT := 1; (* Number of channels. *)
nSubChannels : UDINT := 0; (* Number of subchannels. *)
nInLength : UDINT := 100; (* Length of input data array. *)
nPopulation : UDINT := 100; (* Size of the population. *)
bPopulationEstimates : BOOL := TRUE; (* Apply Bessel's correction to results. *)
END_STRUCT
END_TYPE
nChannels
defines the number of independent channels. This must be greater than zero.nSubChannels
defines the number of independent subchannels. This must be greater than or equal to zero.nInLength
defines the length of the input data array.nPopulation
defines the size of the internal data buffer for calculating the moving moment.bPopulationEstimates
is a Boolean value that indicates, whether the corresponding Bessel's correction is applied to the sample variance, skew and excess.bKurtosisExcess
is a Boolean value that specifies whether the excess is reduced by the value of the kurtosis of a normal distribution.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM_Base |