Extensions.DiagCom.GetDiagServiceFromResult

From emotive
Jump to navigation Jump to search

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