Difference between revisions of "Extensions.DiagCom.GetResponseName"

From emotive
Jump to navigation Jump to search
Line 1: Line 1:
<big>Big text</big>[[Category:DiagCom]]
+
{{DISPLAYTITLE:OTX '''GetResponseName'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetResponseName | Name of a Response | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }}
+
{{ClassificationActivity | GetResponseName | Name of a Response | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Response related terms]] | - | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
Line 9: Line 9:
  
 
== Description ==
 
== 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]].
+
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 [[Extensions.DiagCom.IsPositive|IsPositive]].
  
{{TermReturnValue| [[String]] | Name of a [[Response]].}}
+
{{TermReturnValue| [[Core.DataTypes.SimpleDataType.String|String]] | Name of a [[Extensions.DiagCom.Response|Response]].}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Response | [[Response]] | [[Term]] | - | [1] | Response object.}}
+
{{TableRowPropertie1| Response | [[Extensions.DiagCom.Response|Response]] | [[Term]] | - | [1] | Response object.}}
 
|}
 
|}
  
Line 33: Line 33:
  
 
== See also ==
 
== See also ==
[[GetAllResponses]] <br/>
+
[[Extensions.DiagCom.GetAllResponses|GetAllResponses]] <br/>
[[IsPositive]] <br/>
+
[[Extensions.DiagCom.IsPositive|IsPositive]] <br/>
[[GetFirstResponse]] <br/>
+
[[Extensions.DiagCom.GetFirstResponse|GetFirstResponse]] <br/>
[[ExecuteDiagService]] <br/>
+
[[Extensions.DiagCom.ExecuteDiagService|ExecuteDiagService]] <br/>
[[GetFirstResult]] <br/>
+
[[Extensions.DiagCom.GetFirstResult|GetFirstResult]] <br/>

Revision as of 02:19, 15 February 2016

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.

Icons Note.png 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