Difference between revisions of "Extensions.DiagCom.SetParameterValueBySemantic"

From emotive
Jump to navigation Jump to search
(No difference)

Revision as of 07:02, 5 February 2016

Classification

Name SetParameterValueBySemantic
Short Description Sets the value of a request parameter via a semantic attribute
Class Action
Extension OTX DiagCom extension
Group ComParameter related actions
Exceptions TypeMismatchException
AmbiguousSemanticException
OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

DiagCom.SetParameterValueByPath(ParameterContainer, StringTerm, Term);

Description

The SetParameterValueBySemantic activity sets a request parameter "manually" to a specific value, see ExecuteDiagService. The parameter is used on a so-called semantic-attribute selected.

Icons Note.png Is a prerequisite for the use of semantic attributes, that they through the diagnostic runtime system are supported and that they in the diagnostic database have been adjusted.

Properties

Name Data Type Class Default Cardinality Description
ParameterContainer ParameterContainer Term - [1] The object that contains the parameter whose to be set value.
Semantic String Term - [1] Semantics attribute.
Value - Variable - [1] Value of the corresponding type that is to be placed.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.DiagService myDiagService;
DiagCom.Request req;
DiagCom.Parameter param;

myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
myDiagService = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentASAMODXFileIdent");
req = DiagCom.GetRequest(myDiagService);
param = DiagCom.GetParameterByPath(req, {"Param_RecorDataIdent"});
DiagCom.SetParameterValueBySemantic(param, "Semantic", "Value");

See also

GetComChannel
SetParameterValue
SetPdu