Extensions.DiagCom.GetResultState

From emotive
Revision as of 07:44, 17 February 2016 by Hb (talk | contribs) (→‎Description)
Jump to navigation Jump to search

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.

Icons Note.png 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);

See also

GetFirstResult
GetAllResults