Configure

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

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    eGateMode : E_ALY_GateMode;
    stGatePos1 : ST_ALY_XyPosition;
    stGatePos2 : ST_ALY_XyPosition;
END_VAR

Configure 1: Inputs

Name

Type

Description

eGateMode 

E_ALY_GateMode

Configured gate mode

Intersect Gate: Determines whether the XY signal crosses the gate in the configured direction. If there is an intersection during the analysis period, this is classified as OK, otherwise NOK.

Not Intersect Gate: Monitors whether the XY signal does not intersect with the gate in the configured direction during the analysis period. Then this is classified as OK, otherwise NOK.

Intersect Projection: Determines whether the XY signal crosses the projection of the gate in the configured direction. If there is an intersection during the analysis period, this is classified as OK, otherwise NOK.

Not Intersect Projection: Monitors whether the XY signal does not intersect with the projection of the gate in the configured direction during the analysis period. Then this is classified as OK, otherwise NOK.

Intersect Gate Or Projection: Determines whether the XY signal intersects the gate or its projection in the configured direction. If there is an intersection during the analysis period, this is classified as OK, otherwise NOK.

stCorner1

ST_ALY_XyPosition

Structure for saving the position of the first corner in XY coordinates.

stCorner2

ST_ALY_XyPosition

Structure for saving the position of the second corner in XY coordinates.

stCorner3

ST_ALY_XyPosition

Structure for saving the position of the third corner in XY coordinates.

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.