blockPartialRealtimeSynchronize

An improved block for real-time synchronization. Common interface definitions.

Parameters

TypeNameDefaultDescription
SIunits.TimestartSimTime
Advanced
BooleanshowAdvancedOutputstrueShow output for computing time and remaining time
BooleanshouldCatchupTimefalsetrue, try to catch up delays from missed dead-lines by progressing faster than real-time, otherwise do not

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealOutputwallClockTimeWall clock time (= real-time) that elapsed since initialization of the real-time synchronization object
Modelica.Blocks.Interfaces.RealOutputremainingTimeWall clock time that is left before real-time deadline is reached
Modelica.Blocks.Interfaces.RealOutputcomputingTimeWall clock time between invocations of the real-time sync function, i.e., "computing time" in seconds
Modelica.Blocks.Interfaces.RealOutputsimTime(= time) Simulation time at the the real-time sync function invocation

Components

TypeNameDefaultDescription
Realscaling1real-time scaling factor; > 1 means the simulation is made slower than real-time
Modelica_DeviceDrivers.OperatingSystem.RTSyncrtSyncModelica_DeviceDrivers.OperatingSystem.RTSync(startSimTime, shouldCatchupTime)
SIunits.DurationlastStepSize(= time - lastSimTime) The last simulation time step size between invocations of the real-time sync function
SIunits.TimelastSimTimeSimulation time at the previous invocation of the real-time sync function, the simulation start time at its the first invocation