Difference between revisions of "Extensions.DiagCom.GetResponseName"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | GetResponseName | Name of a Response | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }} | {{ClassificationActivity | GetResponseName | Name of a Response | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
StringTerm = DiagCom.GetResponseName(ResponseTerm); | StringTerm = DiagCom.GetResponseName(ResponseTerm); | ||
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;"> | ||
DiagCom.Result Result1; | DiagCom.Result Result1; |
Revision as of 10:20, 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 |
OTL 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. |
OTL 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