Classification
OTL Syntax
StringTerm DiagCom.GetResponseName(ResponseTerm response);
Description
The GetResponseName term retrieve the name of a Response. For example it can be used to determine whether a Response is positive or negative by comparing the response name with preset response names valid for the vehicle communication component.
|
|
In case a MVCI/ODX system is used the GetResponseName term returns the SHORT-NAME of the associated MCDResponse object.
|
Return Value
The Term returns the value, see table below.
|
|
In OTX, Terms are categorized according to its return data type!
|
Properties
Name |
Data Type |
Class |
Default |
Cardinality |
Description
|
Response |
Response |
Term |
- |
[1] |
The Response whose name will be returned.
|
OTL Examples
/// Local Declarations
DiagCom.Result Result1;
DiagCom.Response Response1;
String ResponseName1 = "";
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);
ResponseName1 = DiagCom.GetResponseName(Response1);
See also
GetAllResponses
GetFirstResponse
GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResult
GetAllResults