Difference between revisions of "Extensions.DiagCom.GetComplexComParameter"

From emotive
Jump to navigation Jump to search
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;">
Parameter GetComplexParameter(ComChannel comChannel, String comParameterName);
+
ParameterTerm = DiagCom.GetComplexParameter(ComChannelTerm, StringTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 21: Line 21:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Parameter parameter = GetComplexComParameter(comChannel, "parameterName");
+
DiagCom.ComChannel myComCannel;
 +
DiagCom.DiagService DiagService1;
 +
DiagCom.Parameter Parameter1;
 +
 
 +
myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
 +
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
 +
Parameter1 = DiagCom.GetComplexComParameter(myComCannel, "CP_CanTransmissionTime");
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
 
[[GetDefaultComplexComParameter]]
 
[[GetDefaultComplexComParameter]]

Revision as of 04:15, 6 February 2015

Classification

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

Pseudo-Code Syntax

ParameterTerm = DiagCom.GetComplexParameter(ComChannelTerm, StringTerm);

Description

The GetComplexParameter term return the current value of a complex communication parameter (e.g. list and struct parameter types).

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
Parameter Standard the 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;
DiagCom.Parameter Parameter1;

myComCannel = DiagCom.GetComChannel("LL_AirbaUDS", null, false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentBasicSettiStatu");
Parameter1 = DiagCom.GetComplexComParameter(myComCannel, "CP_CanTransmissionTime");

See also

GetDefaultComplexComParameter