Difference between revisions of "Extensions.DiagCom.GetFirstResult"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | GetFirstResult | The first result of a diagnostic services performed | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Result related terms]] | [[OutOfBoundsException]] | - }} | {{ClassificationActivity | GetFirstResult | The first result of a diagnostic services performed | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Result related terms]] | [[OutOfBoundsException]] | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | ResultTerm = DiagCom.GetFirstResult(DiagServiceTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 21: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | Result | + | DiagCom.ComChannel myComCannel; |
+ | DiagCom.DiagService DiagService1; | ||
+ | DiagCom.Result Result1; | ||
+ | |||
+ | myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", "", false); | ||
+ | DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu"); | ||
+ | DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false); | ||
+ | Result1 = DiagCom.GetFirstResult(DiagService1); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:02, 5 February 2015
Contents
Classification
Name | GetFirstResult |
Short Description | The first result of a diagnostic services performed |
Class | Term |
Extension | OTX DiagCom extension |
Group | Result related terms |
Exceptions | OutOfBoundsException |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ResultTerm = DiagCom.GetFirstResult(DiagServiceTerm);
Description
The GetFirstResult term returns the first result of a diagnostic services performed. This is necessary especially for the evaluation of the responses of several ECUs.
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Result | Result object of diagnostic services. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
DiagService | DiagService | Term | - | [1] | Diagnostics Service. |
Examples
DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
DiagCom.Result Result1;
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu");
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false);
Result1 = DiagCom.GetFirstResult(DiagService1);