Difference between revisions of "Extensions.DiagCom.GetResponseName"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== Pseudo-Code Syntax == | == Pseudo-Code Syntax == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | StringTerm = DiagCom.GetResponseName(ResponseTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 21: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | String | + | DiagCom.Result Result1; |
+ | List<DiagCom.Response> Responses; | ||
+ | String ResponseName; | ||
+ | DiagCom.ComChannel ComChannel1; | ||
+ | |||
+ | ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", null, false); | ||
+ | DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceBySemantic(ComChannel1, "DEFAULT-FAULT-READ"), {}, {}, false, false, Result1); | ||
+ | Responses = DiagCom.GetAllResponses(Result1); | ||
+ | ResponseName = DiagCom.GetResponseName(Responses[0]); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 10:18, 5 February 2015
Big text
Contents
Classification
Name | GetResponseName |
Short Description | Name of a Response |
Class | Term |
Extension | OTX DiagCom extension |
Group | Response related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
Pseudo-Code Syntax
StringTerm = DiagCom.GetResponseName(ResponseTerm);
Description
The GetResponseName term gives the name of the response back. This can be used, for example, to test based on the name, whether the response from the control unit is positive or negative, but also see IsPositive.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
String | Name of a Response. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Response | Response | Term | - | [1] | Response object. |
Examples
DiagCom.Result Result1;
List<DiagCom.Response> Responses;
String ResponseName;
DiagCom.ComChannel ComChannel1;
ComChannel1 = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagCom.ExecuteDiagService(DiagCom.CreateDiagServiceBySemantic(ComChannel1, "DEFAULT-FAULT-READ"), {}, {}, false, false, Result1);
Responses = DiagCom.GetAllResponses(Result1);
ResponseName = DiagCom.GetResponseName(Responses[0]);
See also
GetAllResponses
IsPositive
GetFirstResponse
ExecuteDiagService
GetFirstResult