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
| 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 |
| Activation | |||
| Boolean | enableExternalTrigger (from PartialSampleTrigger) | false | true, enable external trigger input signal, otherwise use sample time settings below |
| SI.Period | sampleTime (from PartialSampleTrigger) | 0.1 | Sample period of component |
| SI.Time | startTime (from PartialSampleTrigger) | 0 | First sample time instant |
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 | |
| Modelica.Blocks.Interfaces.BooleanInput | trigger (from PartialSampleTrigger) |
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 |