Difference between revisions of "Extensions.DiagCom.GetFirstResponse"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
 
{{DISPLAYTITLE:OTX '''GetFirstResponse'''}}[[Category:DiagCom]]
 
{{DISPLAYTITLE:OTX '''GetFirstResponse'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetFirstResponse | First Response of a result object | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }}
+
{{ClassificationActivity | GetFirstResponse | Gets first Response of a result object | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|Response related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
The '''GetFirstResponse''' term returns the first response of a result object. This is necessary especially for the evaluation of the responses of several ECUs.
+
The '''GetFirstResponse''' term is used to retrieve the first [[Extensions.DiagCom.Response|Response]] of a [[Extensions.DiagCom.Result|Result]] handle. In case there is more than one [[Extensions.DiagCom.Response|Response]] available in a [[Extensions.DiagCom.Result|Result]], only the first [[Extensions.DiagCom.Response|Response]] will be returned.
  
{{TermReturnValue| [[Extensions.DiagCom.Response|Response]] | First Response of a result object.}}
+
{{TermReturnValue| [[Extensions.DiagCom.Response|Response]] | First '''Response''' of a '''Result''' object.}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| ResultEcu | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | Result-Object.}}
+
{{TableRowPropertie2| ResultEcu | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | The '''Result''' whose first response shall be returned.}}
 
|}
 
|}
  
Line 24: Line 24:
 
DiagCom.Response Response1;
 
DiagCom.Response Response1;
 
DiagCom.ComChannel ComChannel1;
 
DiagCom.ComChannel ComChannel1;
DiagCom.DiagService DiagService1;
 
  
ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", "", false);
+
/// Flow
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWECUHardwVersiNumbe");
+
 
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false, Result1);
+
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);
 
Response1 = DiagCom.GetFirstResponse(Result1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
[[Extensions.DiagCom.GetAllResponses|GetAllResponses]] <br/>
+
[[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/>
[[Extensions.DiagCom.IsPositive|IsPositive]] <br/>
+
[[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]] <br/>
[[Extensions.DiagCom.GetResponseName|GetResponseName]] <br/>
 
 
[[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/>
 
[[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/>
 
[[Extensions.DiagCom.GetFirstResult|GetFirstResult]] <br/>
 
[[Extensions.DiagCom.GetFirstResult|GetFirstResult]] <br/>
 +
[[Extensions.DiagCom.GetAllResults|GetAllResults]]

Revision as of 09:01, 12 October 2018

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

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
ResultEcu Result Term - [1] The Result whose first response shall be returned.

OTL Examples

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