SetInital

Initialize internal values of the algorithm.

Syntax

Definition:

METHOD SetInitial : BOOL
VAR_INPUT
    tLastValue : ULINT;
    nCountValues : UDINT;
END_VAR

SetInital 1: Inputs

Name

Type

Description

tLastValue

ULINT

Timestamp of the last data point added.

nCountValues

UDINT

Number of valid values.

SetInital 2: Return value

Name

Type

Description

SetInitial

BOOL

Returns TRUE if successful.