OTX Reference  
OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetRepetitionTime Class Reference

Sets the cycle time More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetRepetitionTime:
Inheritance graph

Public Attributes

DiagServiceValue diagService
 Diagnostic service reference handle. More...
 
NumericTerm repetitionTime
 Cycle time in milliseconds. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Sets the cycle time

The SetRepetitionTime activity sets the cycle time of a diagnostic service in milliseconds. The value can't be set when the service is repeatedly running. To start and stop the service you can use the activities StartRepeatedExecution or StopRepeatedExecution.

Exceptions
Exceptions.InvalidStateExceptionThe diag service is currently being executed repeatedly
Core.Exceptions.OutOfBoundsExceptionThe repetition time value is negative.
Syntax
DiagCom.SetRepetitionTime(DiagServiceValue diagService, NumericTerm repetitionTime);
DiagServiceValue diagService
Diagnostic service reference handle.
Definition: DiagCom.cs:1028
NumericTerm repetitionTime
Cycle time in milliseconds.
Definition: DiagCom.cs:1038
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);

Member Data Documentation

◆ diagService

DiagServiceValue OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetRepetitionTime.diagService

Diagnostic service reference handle.

◆ repetitionTime

NumericTerm OpenTestSystem.Otx.Extensions.DiagCom.Actions.SetRepetitionTime.repetitionTime

Cycle time in milliseconds.