blockRealtimeSynchronize_Sampled

An improved block for real-time synchronization. Sampled Cased.

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.), Modelica_DeviceDrivers.Blocks.Communication.Internal.PartialSampleTrigger (Common code for triggering calls to external I/O devices).

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
Activation
BooleanenableExternalTrigger (from PartialSampleTrigger)falsetrue, enable external trigger input signal, otherwise use sample time settings below
SI.PeriodsampleTime (from PartialSampleTrigger)0.1Sample period of component
SI.TimestartTime (from PartialSampleTrigger)0First sample time instant

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
Modelica.Blocks.Interfaces.BooleanInputtrigger (from PartialSampleTrigger)

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