Difference between revisions of "Extensions.DiagCom.IdentifyAndSelectVariant"

From emotive
Jump to navigation Jump to search
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{DISPLAYTITLE:OTX '''IdentifyAndSelectVariant'''}}[[Category:DiagCom]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | IdentifyAndSelectVariant | Performs a variant identification by | [[Action]] | [[DiagCom|OTX DiagCom extension]] | [[ComChanel related actions]] | [[LossOfComException]] | - }}
+
{{ClassificationActivity | IdentifyAndSelectVariant | Performs a variant identification by | [[Action]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[Extensions.DiagCom#Actions|ComChanel related actions]] | [[Extensions.DiagCom.LossOfComException|LossOfComException]] | - }}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
IdentifyAndSelectVariant(ComChannel comChannel);
+
DiagCom.IdentifyAndSelectVariant(ComChannelValue comChannel);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
== Description ==
 
== Description ==
The OTX '''IdentifyAndSelectVariant''' activity is used to make the [[Diagnosis Runtime System]]  to announce that it is the ECU variant is to select the appropriate communication channel, see [[Variant Identification]] . If an ECU variant can be determined, the current communication channel is switched to this variant.
+
The OTX '''IdentifyAndSelectVariant''' activity is used to tell the communication backend to identify the ECU variant that is present at runtime at a specific communication channel. In case an ECU variant can be identified, the communication channel is switched to point to that specific variant.
  
 
== Properties ==
 
== Properties ==
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| Name | [[String]] | [[Value]] | - | [0..1] | Name to refer to the activity.}}
+
{{TableRowPropertie2| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Value]] | - | [1] | This element comprises the communication channel which will be used for identifying the actual variant of the ECU the communication channel is connected to.}}
{{TableRowPropertie2| Description | [[String]] | [[Value]] | - | - | Description (specification) of the activity.}}
 
{{TableRowPropertie1| Enabled | [[Boolean]] | [[Value]] | false | [0..1] | Activity is enabled or not.}}
 
{{TableRowPropertie2| ComChannel | [[ComChannel]] | [[Variable]] | - | [1] | Communication Channel (Control unit).}}
 
{{TableRowPropertie1| Valid for | [[Boolean]] | [[Term]] | - | [0..1] | Refers to a [[Validity]], which determines whether the activity at runtime is executed or not, see [[Validity]] concept.}}
 
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 +
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 +
/// Local Declarations
 +
 
 +
DiagCom.ComChannel ComChannel1;
 +
 
 +
/// Flow
 +
 
 +
ComChannel1 = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", NULL, false);
 +
DiagCom.IdentifyAndSelectVariant(ComChannel1);
 +
</syntaxhighlight>
  
 
== See also ==
 
== See also ==
 +
[[Extensions.DiagCom.GetComChannel|GetComChannel]]

Latest revision as of 10:00, 12 September 2019

Classification

Name IdentifyAndSelectVariant
Short Description Performs a variant identification by
Class Action
Extension OTX DiagCom extension
Group ComChanel related actions
Exceptions LossOfComException
Checker Rules -
Standard Compliant Yes

OTL Syntax

DiagCom.IdentifyAndSelectVariant(ComChannelValue comChannel);

Description

The OTX IdentifyAndSelectVariant activity is used to tell the communication backend to identify the ECU variant that is present at runtime at a specific communication channel. In case an ECU variant can be identified, the communication channel is switched to point to that specific variant.

Properties

Name Data Type Class Default Cardinality Description
ComChannel ComChannel Value - [1] This element comprises the communication channel which will be used for identifying the actual variant of the ECU the communication channel is connected to.

OTL Examples

/// Local Declarations

DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", NULL, false);
DiagCom.IdentifyAndSelectVariant(ComChannel1);

See also

GetComChannel