Difference between revisions of "Extensions.DiagDataBrowsing.GetEcuVariantList"
Jump to navigation
Jump to search
(6 intermediate revisions by one other user not shown) | |||
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;"> | ||
− | ListTerm | + | ListTerm DiagDataBrowsing.GetEcuVariantList(ComChannelTerm ComChannel); |
</syntaxhighlight> | </syntaxhighlight> | ||
== Description == | == Description == | ||
− | '''GetEcuVariantList''' | + | '''GetEcuVariantList''' will return a list of strings which represents the names of all ECU variants for a given communication channel. The channel will either point to a base variant or an ECU variant – in both cases, the names of the ECU variants of the base variant will be returned. If a base variant has no associated ECU variants, an empty list will be returned. |
+ | |||
+ | If the communication channel belongs to the category PROTOCOL or FUNCTIONAL_GROUP, the [[Core.DataTypes.ComplexDataType.TypeMismatchException|TypeMismatchException]] exception will be thrown. | ||
+ | |||
+ | {{Note|NOTE — In the case of a MVCI/ODX based system, the equivalent of a variant name will be the SHORT-NAME of an ECU-VARIANT.}} | ||
{{TermReturnValue| [[Core.DataTypes.ComplexDataType.ContainerDataType.List|List]] | Return list of names of all ECU variants of a communication channel}} | {{TermReturnValue| [[Core.DataTypes.ComplexDataType.ContainerDataType.List|List]] | Return list of names of all ECU variants of a communication channel}} | ||
Line 16: | Line 20: | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{ | + | {{TableRowPropertie2| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Term]] | - | [1] | This element represents the communication channel which provides the data.}} |
|} | |} | ||
== OTL Examples == | == OTL Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
+ | /// Local Declarations | ||
+ | |||
List<String> List1; | List<String> List1; | ||
DiagCom.ComChannel ComChannel1; | DiagCom.ComChannel ComChannel1; | ||
− | ComChannel1 = DiagCom.GetComChannel(" | + | /// Flow |
+ | |||
+ | ComChannel1 = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", NULL, false); | ||
List1 = DiagDataBrowsing.GetEcuVariantList(ComChannel1); | List1 = DiagDataBrowsing.GetEcuVariantList(ComChannel1); | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 10:32, 12 September 2019
Contents
Classification
Name | GetEcuVariantList |
Short Description | Return list of names of all ECU variants of a communication channel |
Class | Term |
Extension | OTX DiagDataBrowsing extension |
Group | DiagDataBrowsing terms |
Exceptions | TypeMismatchException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ListTerm DiagDataBrowsing.GetEcuVariantList(ComChannelTerm ComChannel);
Description
GetEcuVariantList will return a list of strings which represents the names of all ECU variants for a given communication channel. The channel will either point to a base variant or an ECU variant – in both cases, the names of the ECU variants of the base variant will be returned. If a base variant has no associated ECU variants, an empty list will be returned.
If the communication channel belongs to the category PROTOCOL or FUNCTIONAL_GROUP, the TypeMismatchException exception will be thrown.
![]()
NOTE — In the case of a MVCI/ODX based system, the equivalent of a variant name will be the SHORT-NAME of an ECU-VARIANT.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
List | Return list of names of all ECU variants of a communication channel |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ComChannel | ComChannel | Term | - | [1] | This element represents the communication channel which provides the data. |
OTL Examples
/// Local Declarations
List<String> List1;
DiagCom.ComChannel ComChannel1;
/// Flow
ComChannel1 = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", NULL, false);
List1 = DiagDataBrowsing.GetEcuVariantList(ComChannel1);
See also
GetComChannelList
GetDiagServiceList
GetRequestParameterList
GetResponseParameterList
GetAllowedParameterValueList