Extensions.DiagCom.SetRepetitionTime

From emotive
Jump to navigation Jump to search

Classification

Name SetRepetitionTime
Short Description Sets the repetition cycle time of a diagnostic service
Class Action
Extension OTX DiagCom extension
Group DiagService related actions
Exceptions InvalidStateException
OutOfBoundsException
Checker Rules -
Standard Compliant Yes

OTL Syntax

DiagCom.SetRepetitionTime(DiagServiceValue diagService, NumericTerm repetitionTime);

Description

The OTX SetRepetitionTime action be used to sets the repetition cycle time of a diagnostic service. The repetition time is always provided in millisecond (ms) granularity. It is not allowed to set the repetition time of a service while it is being executed repeatedly. To start or stop a repeated service execution, the StartRepeatedExecution and StopRepeatedExecution actions are to be used ().

Properties

Name Data Type Class Default Cardinality Description
DiagService DiagService Term - [1] The element specifies the service where the repetition time will be set.
RepetitionTime Numeric Term - [1] This element specifies the repetition cycle time in milliseconds (ms). Float values will be truncated.

OTL Examples

/// Local Declarations

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

/// Flow

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

See also

GetComChannel
CreateDiagServiceByName
StartRepeatedExecution
StopRepeatedExecution
GetRepetitionTime
GetAllResults
GetFirstResult
GetAllResultsAndClear