Difference between revisions of "Extensions.DiagCom.GetDefaultComParameterValueAsQuantity"

From emotive
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:OTX '''GetDefaultComParameterValueAsQuantity'''}}[[Category:DiagCom]]
 
{{DISPLAYTITLE:OTX '''GetDefaultComParameterValueAsQuantity'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | GetDefaultComParameterValueAsQuantity | The default value of a [[Quantity]] communication parameter | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[ComParam related terms]] | [[Extensions.DiagCom.UnknownTargetException|UnknownTargetException]] <br/> [[TypeMismatchException]] | - }}
+
{{ClassificationActivity | GetDefaultComParameterValueAsQuantity | Gets the default value of a [[Extensions.Quantities.Quantity|Quantity]] communication parameter | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Terms|ComParam related terms]] | [[Extensions.DiagCom.UnknownTargetException|UnknownTargetException]] <br/> [[Core.DataTypes.ComplexDataType.TypeMismatchException|TypeMismatchException]] | - }}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
QuantityTerm = DiagCom.GetDefaultComParameterValueAsQuantity(ComChannelTerm, StringTerm);
+
QuantityTerm DiagCom.GetDefaultComParameterValueAsQuantity(ComChannelTerm comChannel, StringTerm comParameterName);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
The '''GetDefaultComParameterValueAsQuantity''' term return the default value of a [[Quantity]] communication parameter.
+
The '''GetDefaultComParameterValueAsQuantity''' term will return the default value of a [[Extensions.Quantities.Quantity|quantity]] communication parameter.
  
{{TermReturnValue| [[Quantity]] | The default value of a [[Quantity]] communication parameter.}}
+
{{TermReturnValue| [[Extensions.Quantities.Quantity|Quantity]] | The default value of a [[Extensions.Quantities.Quantity|quantity]] communication parameter.}}
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Term]] | - | [1] | Communication channel.}}
+
{{TableRowPropertie1| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Term]] | - | [1] | The '''ComChannelTerm''' specifies the '''ComChannel''' which will be queried.}}
{{TableRowPropertie2| ComParameterName | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | Name of communication channel.}}
+
{{TableRowPropertie2| ComParameterName | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | The '''otx:StringTerm''' specifies the name of a communication parameter.}}
 
|}
 
|}
  
 
== OTL Examples ==
 
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DiagCom.ComChannel myComCannel;
+
/// Local Declarations
DiagCom.DiagService DiagService1;
+
 
 +
DiagCom.ComChannel ComChannel1;
 
Quantities.Quantity Quantity1;
 
Quantities.Quantity Quantity1;
  
myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
+
/// Flow
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
+
 
Quantity1 = DiagCom.GetDefaultComParameterValueAsQuantity(myComCannel, "CP_CanTransmissionTime");
+
ComChannel1 = DiagCom.GetComChannel("LL_CentrElectUDS", "EV_BCMCONTI_009", false);
 +
Quantity1 = DiagCom.GetDefaultComParameterValueAsQuantity(ComChannel1, "CP_TesterPresentTime");
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
 +
[[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/>
 +
[[Extensions.DiagCom.GetComplexComParameter|GetComplexComParameter]] <br/>
 +
[[Extensions.DiagCom.SetComplexComParameter|SetComplexComParameter]] <br/>
 
[[Extensions.DiagCom.GetDefaultComParameterValueAsBoolean|GetDefaultComParameterValueAsBoolean]] <br/>
 
[[Extensions.DiagCom.GetDefaultComParameterValueAsBoolean|GetDefaultComParameterValueAsBoolean]] <br/>
 
[[Extensions.DiagCom.GetDefaultComParameterValueAsString|GetDefaultComParameterValueAsString]] <br/>
 
[[Extensions.DiagCom.GetDefaultComParameterValueAsString|GetDefaultComParameterValueAsString]] <br/>

Latest revision as of 04:14, 26 December 2019

Classification

Name GetDefaultComParameterValueAsQuantity
Short Description Gets the default value of a Quantity communication parameter
Class Term
Extension OTX DiagCom extension
Group ComParam related terms
Exceptions UnknownTargetException
TypeMismatchException
Checker Rules -
Standard Compliant Yes

OTL Syntax

QuantityTerm DiagCom.GetDefaultComParameterValueAsQuantity(ComChannelTerm comChannel, StringTerm comParameterName);

Description

The GetDefaultComParameterValueAsQuantity term will return the default value of a quantity 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
Quantity The default value of a quantity communication parameter.

Properties

Name Data Type Class Default Cardinality Description
ComChannel ComChannel Term - [1] The ComChannelTerm specifies the ComChannel which will be queried.
ComParameterName String Term - [1] The otx:StringTerm specifies the name of a communication parameter.

OTL Examples

/// Local Declarations

DiagCom.ComChannel ComChannel1;
Quantities.Quantity Quantity1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_CentrElectUDS", "EV_BCMCONTI_009", false);
Quantity1 = DiagCom.GetDefaultComParameterValueAsQuantity(ComChannel1, "CP_TesterPresentTime");

See also

GetComChannel
GetComplexComParameter
SetComplexComParameter
GetDefaultComParameterValueAsBoolean
GetDefaultComParameterValueAsString
GetDefaultComParameterValueAsInteger
GetDefaultComParameterValueAsFloat
GetDefaultComParameterValueAsByteField