Difference between revisions of "Extensions.DiagCom.GetDiagServiceFromResult"

From emotive
Jump to navigation Jump to search
Line 16: Line 16:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| ResultECU | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | Specifies the Result for which the containing DiagService name shall be retrieved.}}
+
{{TableRowPropertie1| ResultECU | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | Specifies the '''Result''' for which the containing '''DiagService''' name shall be retrieved.}}
 
|}
 
|}
  

Revision as of 04:01, 12 October 2018

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);

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
ResultECU Result Term - [1] Specifies the Result for which the containing DiagService name shall be retrieved.

OTL Examples

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