Difference between revisions of "Extensions.DiagCom.GetFirstResponse"

From emotive
Jump to navigation Jump to search
Line 3: Line 3:
 
{{ClassificationActivity | GetFirstResponse | First Response of a result object | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }}
 
{{ClassificationActivity | GetFirstResponse | First Response of a result object | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Response GetFirstResponse(Result resultEcu);
+
ResponseTerm = DiagCom.GetFirstResponse(ResultTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 19: Line 19:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Response result = GetFirstResponse(resultEcu);
+
DiagCom.Result Result1;
 +
DiagCom.Response Response1;
 +
DiagCom.ComChannel ComChannel1;
 +
DiagCom.DiagService DiagService1;
 +
 
 +
ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", "", false);
 +
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWECUHardwVersiNumbe");
 +
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false, Result1);
 +
Response1 = DiagCom.GetFirstResponse(Result1);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 10:11, 5 February 2015

Big text

Classification

Name GetFirstResponse
Short Description 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 returns the first response of a result object. This is necessary especially for the evaluation of the responses of several ECUs.

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] Result-Object.

OTL Examples

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

ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentVWECUHardwVersiNumbe");
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false, Result1);
Response1 = DiagCom.GetFirstResponse(Result1);

See also

GetAllResponses
IsPositive
GetResponseName
ExecuteDiagService
GetFirstResult