Difference between revisions of "Extensions.DiagCom.GetParameterValueAsInteger"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:OTX '''GetParameterValueAsInteger'''}}[[Category:DiagCom]] | {{DISPLAYTITLE:OTX '''GetParameterValueAsInteger'''}}[[Category:DiagCom]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | GetParameterValueAsInteger | | + | {{ClassificationActivity | GetParameterValueAsInteger | Gets the actual value of the parameter as a [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|Parameter related terms]] | [[Core.DataTypes.ComplexDataType.TypeMismatchException|TypeMismatchException]] | - }} |
== OTL Syntax == | == OTL Syntax == |
Revision as of 07:04, 15 October 2018
Contents
Classification
Name | GetParameterValueAsInteger |
Short Description | Gets the actual value of the parameter as a Integer |
Class | Term |
Extension | OTX DiagCom extension |
Group | Parameter related terms |
Exceptions | TypeMismatchException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
IntegerTerm = DiagCom.GetParameterValueAsInteger(ParameterTerm);
Description
The GetParameterValueAsInteger term accepts a ParameterTerm and returns the actual value of the parameter as a Integer.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Interger | The actual value of the parameter. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Parameter | Parameter | Term | - | [1] | The Parameter whose value shall be returned as an Integer. |
OTL Examples
DiagCom.Request Request1;
DiagCom.Parameter Parameter1;
DiagCom.ComChannel ComChannel1;
Integer Integer1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", NULL, false);
Request1 = DiagCom.GetRequest(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentASAMODXFileIdent"));
Parameter1 = DiagCom.GetParameterByPath(Request1, {"Param_RequeServiId"});
Integer1 = DiagCom.GetParameterValueAsInteger(Parameter1);
See also
GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
GetRequest
ExecuteDiagService
GetFirstResponse
GetAllResponses
GetParameterBySemantic
GetParameterByPath
GetParameterAsList
GetParameterValueAsBoolean
GetParameterValueAsString
GetParameterValueAsFloat
GetParameterValueAsByteField
GetParameterValueAsQuantity