Extensions.DiagCom.GetResponseName
Jump to navigation
Jump to search
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