Difference between revisions of "Extensions.DiagCom.GetComParameterValueAsString"

From emotive
Jump to navigation Jump to search
(Created page with "Category:DiagCom == Classification == {{ClassificationActivity | GetComParameterValueAsString | The current value of a String communication parameter | Term | Di...")
 
Line 5: Line 5:
 
== Pseudo-Code Syntax ==
 
== Pseudo-Code Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
String GetComParameterValueAsString(ComChannel comChannel, String comParameterName);
+
StringTer = DiagCom.GetComParameterValueAsString(ComChannelTerm, StringTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 20: Line 20:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
String result = GetComParameterValueAsString(comChannel, "parameterName");
+
DiagCom.ComChannel myComCannel;
 +
DiagCom.DiagService DiagService1;
 +
String String1;
 +
 
 +
myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
 +
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
 +
String1 = DiagCom.GetDefaultComParameterValueAsString(myComCannel, "CP_ChangeSpeedCtrl");
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 04:55, 6 February 2015

Classification

Name GetComParameterValueAsString
Short Description The current value of a String communication parameter
Class Term
Extension OTX DiagCom extension
Group ComParam related terms
Exceptions UnknownTargetException
TypeMismatchException
Checker Rules -
Standard Compliant Yes

Pseudo-Code Syntax

StringTer = DiagCom.GetComParameterValueAsString(ComChannelTerm, StringTerm);

Description

The GetComParameterValueAsString term return the current value of a String communication parameter.

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 The current value of a String communication parameter.

Properties

Name Data Type Class Default Cardinality Description
ComChannel ComChannel Term - [1] Communication channel.
ComParameterName String Term - [1] Name of communication channel.

OTL Examples

DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
String String1;

myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
String1 = DiagCom.GetDefaultComParameterValueAsString(myComCannel, "CP_ChangeSpeedCtrl");

See also

GetComParameterValueAsBoolean
GetComParameterValueAsInteger
GetComParameterValueAsFloat
GetComParameterValueAsByteField
GetComParameterValueAsQuantity