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
| Type | Name | Default | Description |
|---|---|---|---|
| SIunits.Time | startSimTime (from PartialRealtimeSynchronize) | ||
| Advanced | |||
| Boolean | showAdvancedOutputs (from PartialRealtimeSynchronize) | true | Show output for computing time and remaining time |
| Boolean | shouldCatchupTime (from PartialRealtimeSynchronize) | false | true, try to catch up delays from missed dead-lines by progressing faster than real-time, otherwise do not |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | wallClockTime (from PartialRealtimeSynchronize) | Wall clock time (= real-time) that elapsed since initialization of the real-time synchronization object | |
| Modelica.Blocks.Interfaces.RealOutput | remainingTime (from PartialRealtimeSynchronize) | Wall clock time that is left before real-time deadline is reached | |
| Modelica.Blocks.Interfaces.RealOutput | computingTime (from PartialRealtimeSynchronize) | Wall clock time between invocations of the real-time sync function, i.e., "computing time" in seconds | |
| Modelica.Blocks.Interfaces.RealOutput | simTime (from PartialRealtimeSynchronize) | (= time) Simulation time at the the real-time sync function invocation |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | scaling (from PartialRealtimeSynchronize) | 1 | real-time scaling factor; > 1 means the simulation is made slower than real-time |
| Modelica_DeviceDrivers.OperatingSystem.RTSync | rtSync (from PartialRealtimeSynchronize) | Modelica_DeviceDrivers.OperatingSystem.RTSync(startSimTime, shouldCatchupTime) | |
| SIunits.Duration | lastStepSize (from PartialRealtimeSynchronize) | (= time - lastSimTime) The last simulation time step size between invocations of the real-time sync function | |
| SIunits.Time | lastSimTime (from PartialRealtimeSynchronize) | Simulation time at the previous invocation of the real-time sync function, the simulation start time at its the first invocation |