Difference between revisions of "Extensions.DiagCom.IsVariant"
Jump to navigation
Jump to search
m (Hb moved page IsVariant to Extensions.DiagCom.IsVariant: #3153) |
|||
Line 1: | Line 1: | ||
− | [[Category:DiagCom]] | + | {{DISPLAYTITLE:OTX '''IsVariant'''}}[[Category:DiagCom]] |
== Classification == | == Classification == | ||
− | {{ClassificationActivity | IsVariant | Tests the name of a control device variant for a communication channel | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[ComChanel related terms]] | - | - }} | + | {{ClassificationActivity | IsVariant | Tests the name of a control device variant for a communication channel | [[Term]] | [[Extensions.DiagCom|OTX DiagCom extension]] | [[ComChanel related terms]] | - | - }} |
== OTL Syntax == | == OTL Syntax == | ||
Line 11: | Line 11: | ||
The '''IsVariant''' term tests whether the name of the specified control units version matches the version of the given communication channel, see [[Variant Identification]]. | The '''IsVariant''' term tests whether the name of the specified control units version matches the version of the given communication channel, see [[Variant Identification]]. | ||
− | {{TermReturnValue| [[ | + | {{TermReturnValue| [[Core.DataTypes.SimpleDataType.Boolean|Boolean]] | Return true if the version matches, false otherwise.}} |
== Properties == | == Properties == | ||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| ComChannel | [[ComChannel]] | [[Term]] | - | [1] | Communication channel.}} | + | {{TableRowPropertie1| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Term]] | - | [1] | Communication channel.}} |
− | {{TableRowPropertie2| EcuVariant | [[String]] | [[Term]] | - | [1] | Name of the ECU variant.}} | + | {{TableRowPropertie2| EcuVariant | [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1] | Name of the ECU variant.}} |
|} | |} | ||
Line 32: | Line 32: | ||
== See also == | == See also == | ||
− | [[GetComChannelIdentifierFromResponse]] <br/> | + | [[Extensions.DiagCom.GetComChannelIdentifierFromResponse|GetComChannelIdentifierFromResponse]] <br/> |
− | [[GetComChannel]] <br/> | + | [[Extensions.DiagCom.GetComChannel|GetComChannel]] <br/> |
− | [[GetComChannelEcuVariantName]] | + | [[Extensions.DiagCom.GetComChannelEcuVariantName|GetComChannelEcuVariantName]] |
Revision as of 09:01, 5 February 2016
Contents
Classification
Name | IsVariant |
Short Description | Tests the name of a control device variant for a communication channel |
Class | Term |
Extension | OTX DiagCom extension |
Group | ComChanel related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = DiagCom.IsVariant(ComChannelTerm, StringTerm);
Description
The IsVariant term tests whether the name of the specified control units version matches the version of the given communication channel, see Variant Identification.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | Return true if the version matches, false otherwise. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ComChannel | ComChannel | Term | - | [1] | Communication channel. |
EcuVariant | String | Term | - | [1] | Name of the ECU variant. |
OTL Examples
DiagCom.ComChannel myComCannel;
String String1;
Boolean Boolean1 = false;
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
String1 = DiagCom.GetComChannelEcuVariantName(myComCannel);
Boolean1 = DiagCom.IsVariant(myComCannel, String1);
See also
GetComChannelIdentifierFromResponse
GetComChannel
GetComChannelEcuVariantName