ST_FTR_MovAvg
Configuration structure for the function block FB_FTR_MovAvg.
Syntax
Definition:
TYPE ST_FTR_MovAvg :
STRUCT
nSamplesToFilter : UDINT:
nOversamples : UDINT;
nChannels : UDINT;
pInitialValues : POINTER TO LREAL;
nInitialValuesSize : UDINT;
END_STRUCT
END_TYPE
Parameter
Name | Type | Description |
---|---|---|
nSamplesToFilter | UDINT | Number of samples for calculating the moving average (often referred to as window size) |
nOversamples | UDINT | Number of oversamples (greater than zero) |
nChannels | UDINT | Number of channels (greater than zero and less than 101) |
pInitialValues | Pointer to LREAL | Pointer to array with initial values (optional) |
nInitialValuesSize | UDINT | Size of the array with initial values in BYTE (optional) |