Configure

Configure the algorithm. Channel specific parameter are set using the method ConfigueChannel().

Syntax

Definition:

METHOD Configure : BOOL
    eSampleMode : E_ALY_SampleMode;
VAR_INPUT
END_VAR

Configure 1: Inputs

Name

Type

Description

eSampleMode

E_ALY_SampleMode

The values from the buffer can be passed to the output channels in two different modes:

Flow: The buffer is filled like a ring buffer. At the start of the analysis all output values are set to zero. Each change to the ring buffer is transferred to the output channels immediately. The New Result flag is set to TRUE, once all output channels got assigned a value and is always true, when a new value is saved in the buffer.

Wait: At the start of the analysis or after reset all output channels are set to zero. Only when the internal buffer is full, these values are transferred to the output channels and the New Result flag is set to TRUE. These values stay as output values until all the values in the internal buffer are renewed. Only then they are transferred to the output channels.

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.