Difference between revisions of "Extensions.DiagCom.GetResultState"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | GetResultState | The state of [[Result]] | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Result related terms]] | - | - }} | {{ClassificationActivity | GetResultState | The state of [[Result]] | [[Term]] | [[DiagCom|OTX DiagCom extension]] | [[Result related terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | ResultState GetResultState( | + | ResultState = DiagCom.GetResultState(ResultTerm); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 19: | Line 19: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | ResultState | + | DiagCom.ComChannel myComCannel; |
+ | DiagCom.DiagService DiagService1; | ||
+ | DiagCom.Result Result1; | ||
+ | DiagCom.ResultState ResultState1 = @ResultStates:ALL_INVALID; | ||
+ | |||
+ | myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", "", false); | ||
+ | DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu"); | ||
+ | DiagCom.StartRepeatedExecution(DiagService1); | ||
+ | DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false); | ||
+ | DiagCom.StopRepeatedExecution(DiagService1); | ||
+ | Result1 = DiagCom.GetFirstResult(DiagService1); | ||
+ | ResultState1 = DiagCom.GetResultState(Result1); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:27, 5 February 2015
Big text
Contents
Classification
Name | GetResultState |
Short Description | The state of Result |
Class | Term |
Extension | OTX DiagCom extension |
Group | Result related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ResultState = DiagCom.GetResultState(ResultTerm);
Description
The GetResultState term retrieve the state of a Result(i.e. whether the ECU(s) answered at all, correctly, positively or negatively).
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
ResultState | State of the Result. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ResultEcu | Result | Term | - | [1] | Result object. |
OTL Examples
DiagCom.ComChannel myComCannel;
DiagCom.DiagService DiagService1;
DiagCom.Result Result1;
DiagCom.ResultState ResultState1 = @ResultStates:ALL_INVALID;
myComCannel = DiagCom.GetComChannel("LL_AllEmissRelatUDSSyste", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(myComCannel, "DiagnServi_ReadDataByIdentActuaTestStatu");
DiagCom.StartRepeatedExecution(DiagService1);
DiagCom.ExecuteDiagService(DiagService1, {}, {}, false, false);
DiagCom.StopRepeatedExecution(DiagService1);
Result1 = DiagCom.GetFirstResult(DiagService1);
ResultState1 = DiagCom.GetResultState(Result1);