Difference between revisions of "Extensions.DiagCom.GetDiagServiceName"

From emotive
Jump to navigation Jump to search
Line 5: Line 5:
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
StringTerm = DiagCom.GetDiagServiceName(DiagServiceTerm);
+
/// Local Declarations
 +
String StringVariable = "";
 +
/// Flow
 +
StringVariable = DiagCom.GetDiagServiceName(DiagServiceTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 21: Line 24:
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
/// Local Declarations
 +
 
DiagCom.DiagService DiagService1;
 
DiagCom.DiagService DiagService1;
 
String String1 = "";
 
String String1 = "";

Revision as of 10:18, 23 October 2018

Classification

Name GetDiagServiceName
Short Description Gét the name of the DiagService
Class Term
Extension OTX DiagCom extension
Group DiagService related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

/// Local Declarations
String StringVariable = "";
/// Flow
StringVariable = DiagCom.GetDiagServiceName(DiagServiceTerm);

Description

The GetDiagServiceName term accepts a DiagService handle and returns the name of the DiagService as a string.

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 the diagnostic services.

Properties

Name Data Type Class Default Cardinality Description
DiagService DiagService Term - [1] The DiagService of which the name shall be returned.

OTL Examples

/// Local Declarations

DiagCom.DiagService DiagService1;
String String1 = "";
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_CentrElectUDS", "EV_BCMCONTI_009", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu");
String1 = DiagCom.GetDiagServiceName(DiagService1);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
GetDiagServiceListBySemantic
GetDiagServiceFromResult