modelTestSerialPackager_SharedMemoryExternalTrigger
Example for combining externally triggered SharedMemory and SerialPackager blocks
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
The sharedMemoryWrite block writes to the memory partition with memoryID = "sharedMemory". The sharedMemoryRead block reads from that partition.
Note: There is no causality between the sharedMemoryWrite block and the sharedMemoryRead block. Therefore the execution order of the blocks is not determined. This indeterminism may also show up in the plots.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Packaging.SerialPackager.Packager | packager | ||
| Packaging.SerialPackager.AddReal | addReal | ||
| Modelica.Blocks.Sources.RealExpression[3] | realExpression | ||
| Packaging.SerialPackager.AddInteger | addInteger | ||
| Modelica.Blocks.Sources.IntegerExpression | integerExpression | ||
| Communication.SharedMemoryWrite | sharedMemoryWrite | ||
| Packaging.SerialPackager.GetReal | getReal | ||
| Packaging.SerialPackager.GetInteger | getInteger | ||
| Communication.SharedMemoryRead | sharedMemoryRead | ||
| Modelica.Blocks.Logical.ZeroCrossing | zeroCrossing1 | ||
| Modelica.Blocks.Sources.BooleanExpression | enable | ||
| Modelica.Blocks.Sources.RealExpression | realExpression1 |