GetEngineIdFromRef

GetEngineIdFromRef 1:

Syntax

Definition:

METHOD GetEngineIdFromRef : BOOL
VAR_INPUT
    sEngineRef : T_MaxString;
    nEngineId  : Reference To UDINT;
END_VAR

GetEngineIdFromRef 2: Inputs

Name

Type

Description

sEngineRef

T_MaxString

Reference string of model engine (or parameter set) used for prediction, use default value 0 if there are no multi-engines used

nEngineId

Reference To UDINT

Id of model engine (or parameter set)

GetEngineIdFromRef 3: Return value

BOOL

In case of multi engines in an ML model description file, engines can be selected via ID or reference name. While the Predict-method expects an ID as input, the PredictRef method expects a reference name as input.

GetEngineIdFromRef can convert a reference name into an engine ID. Reference names can be found in the Beckhoff ML XML file inside the <IODistributor> section, see XML attribute str_reference, and can be set via the TC3 Machine Learning Model Manager, see Merge Tool.