blockRealtimeSynchronize_Continuous

An improved block for real-time synchronization. Continuous case.

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Blocks.OperatingSystem.Internal.PartialRealtimeSynchronize (An improved block for real-time synchronization. Common interface definitions.).

Parameters

TypeNameDefaultDescription
SIunits.TimestartSimTime (from PartialRealtimeSynchronize)
Advanced
BooleanshowAdvancedOutputs (from PartialRealtimeSynchronize)trueShow output for computing time and remaining time
BooleanshouldCatchupTime (from PartialRealtimeSynchronize)falsetrue, try to catch up delays from missed dead-lines by progressing faster than real-time, otherwise do not

Connectors

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

Components

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