GetChannelOutputValues

Retrieves channel-specific output values. The output values were updated in the previously called Call() method.

Syntax

Definition:

METHOD GetChannelOutputValues : BOOL
VAR_INPUT
    nChannel : UDINT;
    pCorrCoefsArrayOut : PVOID;
    nCorrCoefsArrayOutSize : UDINT;
END_VAR
VAR_IN_OUT
    fMinCoef : LREAL;
    fMaxCoef : LREAL;
    nMinimizingLag : DINT;
    nMaximizingLag : DINT;
END_VAR

GetChannelOutputValues 1: Inputs

Name

Type

Description

nChannel

UDINT

Channel index (1 to nNumChannels)

fMinCoef

LREAL

Writing to variable takes place with the minimum coefficient of the output array.

fMaxCoef

LREAL

Writing to variable takes place with the maximum coefficient of the output array.

nMinimizingLag

DINT

Writing to the variable takes place with the lag at which the coefficient is smallest.

nMaximizingLag

DINT

Writing to the variable takes place with the lag at which the coefficient is greatest.

GetChannelOutputValues 2: Return value

Name

Type

Description

GetChannelOutputValues

BOOL

Returns TRUE if successful.