Difference between revisions of "Extensions.DiagCom.GetDiagServiceFromResult"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== OTL Syntax == | == OTL Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | /// Local Declarations | |
+ | DiagCom.DiagService DiagServiceVariable; | ||
+ | /// Flow | ||
+ | DiagServiceVariable = DiagCom.GetDiagServiceFromResult(ResultTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 24: | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
DiagCom.Result Result1; | DiagCom.Result Result1; | ||
DiagCom.DiagService DiagService1; | DiagCom.DiagService DiagService1; |
Revision as of 10:16, 23 October 2018
Contents
Classification
Name | GetDiagServiceFromResult |
Short Description | Gets the handle of the Diagnostic service from a Result |
Class | Term |
Extension | OTX DiagCom extension |
Group | DiagService related terms |
Exceptions | InvalidReferenceException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
DiagCom.DiagService DiagServiceVariable;
/// Flow
DiagServiceVariable = DiagCom.GetDiagServiceFromResult(ResultTerm);
Description
The GetDiagServiceNameFromResult term accepts a ResultTerm and will return the handle of the DiagService the Result belongs to.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
DiagService | The handle of the Diagnostic service |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ResultECU | Result | Term | - | [1] | Specifies the Result for which the containing DiagService name shall be retrieved. |
OTL Examples
/// Local Declarations
DiagCom.Result Result1;
DiagCom.DiagService DiagService1;
DiagCom.ComChannel ComChannel1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
[#MetaData(RequestPdu), <#Data>22 F1 A2</#Data>]
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentASAMODXFileVersi"), {}, {}, Result1, NULL, false, false);
DiagService1 = DiagCom.GetDiagServiceFromResult(Result1);
See also
CreateDiagServiceBySemantic
CreateDiagServiceByName
GetDiagServiceListBySemantic
GetDiagServiceFromException
GetDiagServiceName
ExecuteDiagService
GetComChannel