Extensions.DiagCom.GetFirstResponse

From emotive
Jump to navigation Jump to search

Classification

Name GetFirstResponse
Short Description Gets first Response of a result object
Class Term
Extension OTX DiagCom extension
Group Response related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ResponseTerm DiagCom.GetFirstResponse(ResultTerm result);

Description

The GetFirstResponse term is used to retrieve the first Response of a Result handle. In case there is more than one Response available in a Result, only the first Response will be returned.

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
Response First Response of a Result object.

Properties

Name Data Type Class Default Cardinality Description
Result Result Term - [1] The Result whose first response will be returned.

OTL Examples

/// Local Declarations

DiagCom.Result Result1;
DiagCom.Response Response1;
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
[#MetaData(RequestPdu), <#Data>22 01 00</#Data>]
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu"), {}, {}, Result1, NULL, false, false);
Response1 = DiagCom.GetFirstResponse(Result1);

See also

GetComChannel
CreateDiagServiceByName
ExecuteDiagService
GetFirstResult
GetAllResults