Configure

Configuring the algorithm.

Syntax

Definition:

METHOD Configure : BOOL
VAR_INPUT
    eFunctionType : E_ALY_FunctionType;
    fSampleRate : LREAL;
    fFrequency : LREAL;
    fAmplitude : LREAL;
    fOffset : LREAL;
END_VAR

Configure 1: Inputs

Name

Type

Description

eFunctionType

E_ALY_FunctionType

Function type of the generated signal.
Const: Constant
Rectangle: Rectangle function
Sawtooth: Sawtooth function
Sine: Sine function
Triangle: Triangle function

fSampleRate

LREAL

Sample rate of the system to be analyzed.

fFrequency

LREAL

Frequency of the generated signal.

fAmplitude

LREAL

Configuration of the signal amplitude.

fOffset

LREAL

Constant offset of the generated signal.

Configure 2: Return value

Name

Type

Description

Configure

BOOL

Returns TRUE if successful.