Difference between revisions of "Extensions.DiagCom.GetResultState"

From emotive
Jump to navigation Jump to search
 
(2 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;">
/// Local Declarations
+
ResultStateTerm DiagCom.GetResultState(ResultTerm result);
DiagCom.ResultState ResultStateVariable = @ResultState:ALL_FAILED;
 
/// Flow
 
ResultStateVariable = DiagCom.GetResultState(ResultTerm);
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 19: Line 16:
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie2| ResultEcu | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | The '''Result''' whose state shall be returned.}}
+
{{TableRowPropertie2| Result | [[Extensions.DiagCom.Result|Result]] | [[Term]] | - | [1] | The '''Result''' whose state will be returned.}}
 
|}
 
|}
  

Latest revision as of 10:13, 12 September 2019

Classification

Name GetResultState
Short Description Gets the state of a Result
Class Term
Extension OTX DiagCom extension
Group Result related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ResultStateTerm DiagCom.GetResultState(ResultTerm result);

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.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
ResultState The state of the Result.

Properties

Name Data Type Class Default Cardinality Description
Result Result Term - [1] The Result whose state will be returned.

OTL Examples

/// Local Declarations

DiagCom.DiagService DiagService1;
DiagCom.Result Result1;
DiagCom.ResultState ResultState1 = @ResultState:ALL_INVALID;
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_ReadDataByIdentActuaTestStatu");
[#MetaData(RequestPdu), <#Data>22 01 00</#Data>]
DiagCom.ExecuteDiagService(DiagService1, {}, {}, NULL, NULL, false, false);
Result1 = DiagCom.GetFirstResult(DiagService1);
ResultState1 = DiagCom.GetResultState(Result1);

See also

GetComChannel
CreateDiagServiceByName
CreateDiagServiceBySemantic
ExecuteDiagService
GetFirstResult
GetAllResults