modelTestSerialPackager_SharedMemory

Example for combining SharedMemory and SerialPackager blocks
Diagram of TestSerialPackager_SharedMemory

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

TypeNameDefaultDescription
Packaging.SerialPackager.Packagerpackager
Packaging.SerialPackager.AddRealaddReal
Modelica.Blocks.Sources.RealExpression[3]realExpression
Packaging.SerialPackager.AddIntegeraddInteger
Modelica.Blocks.Sources.IntegerExpressionintegerExpression
Communication.SharedMemoryWritesharedMemoryWrite
Packaging.SerialPackager.GetRealgetReal
Packaging.SerialPackager.GetIntegergetInteger
Communication.SharedMemoryReadsharedMemoryRead