Extensions.DiagCom.StartRepeatedExecution

From emotive
Jump to navigation Jump to search

Classification

Name StartRepeatedExecution
Short Description Executing repeatedly a DiagService
Class Action
Extension OTX DiagCom extension
Group DiagService related actions
Exceptions InvalidStateException
IncompleteParameterizationException
Checker Rules -
Standard Compliant Yes

OTL Syntax

DiagCom.StartRepeatedExecution(DiagServiceValue diagService);

Description

The OTX StartRepeatedExecution action be used to executed repeatedly a DiagService by the underlying communication backend. The repetition time will be set through the SetRepetitionTime action and queried by the GetRepetitionTime term. The behavior depends on the underplaying System. Especially if the RepetitionTime value is 0 or lower than the physical possible repetition time. The StartRepeatedExecution action will return immediately, the results of the DiagService created by the repeated service execution can be queried through the GetFirstResult or GetAllResults terms or the GetAllResultsAndClear action. Each new result (each execution cycle) will cause a DiagServiceEvent to be raised by the DiagService object. To stop a repeated service execution, the StopRepeatedExecution action is to be used.

Properties

Name Data Type Class Default Cardinality Description
DiagService DiagService Value - [1] The element specifies the service which will be executed repeatedly.

OTL Examples

/// Local Declarations

DiagCom.DiagService DiagService1;
List<DiagCom.Result> List1;
DiagCom.ComChannel ComChannel1;

/// Flow

ComChannel1 = DiagCom.GetComChannel("LL_GatewUDS", "EV_GatewLear_006", false);
DiagService1 = DiagCom.CreateDiagServiceByName(ComChannel1, "DiagnServi_DiagnSessiContr");
DiagCom.StartRepeatedExecution(DiagService1);
EventHandling.Sleep(50);
DiagCom.StopRepeatedExecution(DiagService1);
List1 = DiagCom.GetAllResults(DiagService1);

See also

GetComChannel
CreateDiagServiceByName
StopRepeatedExecution
SetRepetitionTime
GetRepetitionTime
GetAllResults
GetFirstResult
GetAllResultsAndClear