Difference between revisions of "Extensions.DiagCom.GetResponseName"
Jump to navigation
Jump to search
(Created page with "<big>Big text</big>Category:DiagCom == Classification == {{ClassificationActivity | GetResponseName | Name of a Response | Term | OTX DiagCom extension | [...") |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{DISPLAYTITLE:OTX '''GetResponseName'''}}[[Category:DiagCom]] | |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | GetResponseName | | + | {{ClassificationActivity | GetResponseName | Gets the name of a '''Response''' | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|Response related terms]] | - | - }} |
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | GetResponseName( | + | StringTerm DiagCom.GetResponseName(ResponseTerm response); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
− | The '''GetResponseName''' term | + | The '''GetResponseName''' term retrieve the name of a [[Extensions.DiagCom.Response|Response]]. For example it can be used to determine whether a [[Extensions.DiagCom.Response|Response]] is positive or negative by comparing the response name with preset response names valid for the vehicle communication component. |
− | {{TermReturnValue| [[String]] | | + | {{Note|In case a MVCI/ODX system is used the '''GetResponseName''' term returns the '''SHORT-NAME''' of the associated '''MCDResponse''' object.}} |
+ | |||
+ | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | The name of a [[Extensions.DiagCom.Response|Response]].}} | ||
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{ | + | {{TableRowPropertie2| Response | [[Extensions.DiagCom.Response|Response]] | [[Term]] | - | [1] | The '''Response''' whose name will be returned.}} |
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | String | + | /// 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); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== See also == | == See also == | ||
− | [[GetAllResponses]] <br/> | + | [[Extensions.DiagCom.GetAllResponses|GetAllResponses]] <br/> |
− | [[ | + | [[Extensions.DiagCom.GetFirstResponse|GetFirstResponse]] <br/> |
− | [[ | + | [[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/> |
− | [[ExecuteDiagService]] <br/> | + | [[Extensions.DiagCom.CreateDiagServiceByName|CreateDiagServiceByName]] <br/> |
− | [[GetFirstResult]] <br/> | + | [[Extensions.DiagCom.CreateDiagServiceBySemantic|CreateDiagServiceBySemantic]] <br/> |
+ | [[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/> | ||
+ | [[Extensions.DiagCom.GetFirstResult|GetFirstResult]] <br/> | ||
+ | [[Extensions.DiagCom.GetAllResults|GetAllResults]] <br/> |
Latest revision as of 10:06, 12 September 2019
Contents
Classification
Name | GetResponseName |
Short Description | Gets the 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 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!
Data Type | Description |
String | The name of a Response. |
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