Difference between revisions of "Extensions.DiagCom.CreateDiagServiceBySemantic"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | CreateDiagServiceBySemantic | Creates a diagnostic service through its semantic attribute | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[DiagService related terms]] | [[AmbiguousSemanticException]] | - }} | {{ClassificationActivity | CreateDiagServiceBySemantic | Creates a diagnostic service through its semantic attribute | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[DiagService related terms]] | [[AmbiguousSemanticException]] | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | DiagServiceTerm = DiagCom.CreateDiagServiceBySemantic(ComChanneTerm, 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;"> | ||
− | ComChannel myComCannel = GetComChannel(" | + | DiagCom.ComChannel myComCannel; |
− | + | DiagCom.DiagService DiagService1; | |
+ | |||
+ | myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false); | ||
+ | DiagService1 = DiagCom.CreateDiagServiceBySemantic(myComCannel, "CALIBRATIONREAD"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 04:48, 5 February 2015
Contents
Classification
Name | CreateDiagServiceBySemantic |
Short Description | Creates a diagnostic service through its semantic attribute |
Class | Term |
Extension | OTX DiagCom extension |
Group | DiagService related terms |
Exceptions | AmbiguousSemanticException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
DiagServiceTerm = DiagCom.CreateDiagServiceBySemantic(ComChanneTerm, StringTerm);
Description
The CreateDiagServiceBySemantic term creates a handle to a diagnostic service, which can be used for further parameterization or for direct ship, see Diagnostic Runtime System. The diagnostic service is a Semantic Attribute selected.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
DiagService | Generated Diagnostics Service. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ComChannel | ComChannel | Term | - | [1] | Communication Channel. |
Semantic | String | Term | - | [1] | Semantic attribute to classify the diagnostic services (eg: "DEFAULT_FAULTREAD" or "IDENTIFICATION"). |
OTL Examples
DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", null, false);
DiagService1 = DiagCom.CreateDiagServiceBySemantic(myComCannel, "CALIBRATIONREAD");
See also
GetDiagServiceListBySemantic
GetDiagServiceFromResult
GetDiagServiceFromException
GetDiagServiceName
ExecuteDiagService
GetComChannel