Difference between revisions of "Extensions.DiagCom.GetDiagServiceFromResult"

From emotive
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
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
+
DiagServiceTerm DiagCom.GetDiagServiceFromResult(ResultTerm result);
DiagCom.DiagService DiagServiceVariable;
 
/// Flow
 
DiagServiceVariable = DiagCom.GetDiagServiceFromResult(ResultTerm);
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 19: Line 16:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie2| ResultECU | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | Specifies the '''Result''' for which the containing '''DiagService''' name shall be retrieved.}}
+
{{TableRowPropertie2| Result | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | Specifies the '''Result''' for which the containing '''DiagService''' name will be retrieved.}}
 
|}
 
|}
  

Latest revision as of 10:11, 12 September 2019

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

DiagServiceTerm DiagCom.GetDiagServiceFromResult(ResultTerm result);

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.

Icons Note.png 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
Result Result Term - [1] Specifies the Result for which the containing DiagService name will 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