Difference between revisions of "Extensions.DiagCom.GetDefaultComParameterValueAsString"
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;"> | ||
− | + | /// Local Declarations | |
+ | String StringVariable = ""; | ||
+ | /// Flow | ||
+ | StringVariable = DiagCom.GetDefaultComParameterValueAsString(ComChannelTerm, StringTerm); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 22: | Line 25: | ||
== 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.ComChannel ComChannel1; | DiagCom.ComChannel ComChannel1; | ||
String String1 = ""; | String String1 = ""; |
Revision as of 02:47, 24 October 2018
Contents
Classification
Name | GetDefaultComParameterValueAsString |
Short Description | Gets The default value of a String communication parameter |
Class | Term |
Extension | OTX DiagCom extension |
Group | ComParam related terms |
Exceptions | UnknownTargetException TypeMismatchException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
/// Local Declarations
String StringVariable = "";
/// Flow
StringVariable = DiagCom.GetDefaultComParameterValueAsString(ComChannelTerm, StringTerm);
Description
The GetDefaultComParameterValueAsString term comprises the ChannelAndParameterName attribute group and shall return the default value of a string type communication parameter.
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 default value of a String communication parameter. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ComChannel | ComChannel | Term | - | [1] | The ComChannelTerm specifies the ComChannel which shall be queried. |
ComParameterName | String | Term | - | [1] | The otx:StringTerm specifies the name of a communication parameter. |
OTL Examples
/// Local Declarations
DiagCom.ComChannel ComChannel1;
String String1 = "";
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_CentrElectUDS", "EV_BCMCONTI_009", false);
String1 = DiagCom.GetDefaultComParameterValueAsString(ComChannel1, "CP_ModifyTiming");
See also
GetComChannel
GetComplexComParameter
SetComplexComParameter
GetDefaultComParameterValueAsBoolean
GetDefaultComParameterValueAsInteger
GetDefaultComParameterValueAsFloat
GetDefaultComParameterValueAsByteField
GetDefaultComParameterValueAsQuantity