functionsampleStart

Start time for sampling

Extends from Modelica.Icons.Function (Icon for functions).

Information

Function that returns the time at which the sampling needs to start.

This function takes as arguments the sampling interval and the current time. It returns the time at which the sampling will start. The start of the sampling will be such that a sample instant coincides with t=0.

Inputs

TypeNameDefaultDescription
Modelica.Units.SI.TimetSimulation time
Modelica.Units.SI.TimesamplePeriodSample Period

Outputs

TypeNameDefaultDescription
Modelica.Units.SI.TimesampleStartTime at which first sample happens

Revisions

  • October 25, 2014 by Michael Wetter:
    First implementation.