Difference between revisions of "Extensions.DiagCom.GetComParameterValueAsByteField"

From emotive
Jump to navigation Jump to search
(Created page with "Category:DiagCom == Classification == {{ClassificationActivity | GetComParameterValueAsByteField | The current value of a ByteField communication parameter | Term...")
 
Line 3: Line 3:
 
{{ClassificationActivity | GetComParameterValueAsByteField | The current value of a [[ByteField]] communication parameter | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[ComParam related terms]] | [[UnknownTargetException]] <br/> [[TypeMismatchException]] | - }}
 
{{ClassificationActivity | GetComParameterValueAsByteField | The current value of a [[ByteField]] communication parameter | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[ComParam related terms]] | [[UnknownTargetException]] <br/> [[TypeMismatchException]] | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
ByteField GetComParameterValueAsByteField(ComChannel comChannel, String comParameterName);
+
ByteFieldTerm = DiagCom.GetComParameterValueAsByteField(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;">
ByteField result = GetComParameterValueAsByteField(comChannel, "parameterName");
+
DiagCom.ComChannel myComCannel;
 +
DiagCom.DiagService DiagService1;
 +
ByteField ByteField1;
 +
 
 +
myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
 +
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
 +
ByteField1 = DiagCom.GetComParameterValueAsByteField(myComCannel, "CP_ChangeSpeedMessage");
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 07:33, 6 February 2015

Classification

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

OTL Syntax

ByteFieldTerm = DiagCom.GetComParameterValueAsByteField(ComChannelTerm, StringTerm);

Description

The GetComParameterValueAsFloat term return the current value of a ByteField 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
ByteField The current value of a ByteField 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;
ByteField ByteField1;

myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
ByteField1 = DiagCom.GetComParameterValueAsByteField(myComCannel, "CP_ChangeSpeedMessage");

See also

GetComParameterValueAsBoolean
GetComParameterValueAsString
GetComParameterValueAsInteger
GetComParameterValueAsFloat
GetComParameterValueAsQuantity