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
ClockedBlocks.Packaging.SerialPackager.Packagerpackager
ClockedBlocks.Packaging.SerialPackager.AddRealaddReal
ClockedBlocks.Packaging.SerialPackager.AddIntegeraddInteger
ClockedBlocks.Communication.SharedMemoryWritesharedMemoryWrite
Modelica.Blocks.Sources.RealExpression[3]realExpression
Modelica.Blocks.Sources.IntegerExpressionintegerExpression
Modelica.Clocked.IntegerSignals.Sampler.SampleClockedsample1
Modelica.Clocked.RealSignals.Sampler.SampleClocked[3]sample2
Modelica.Clocked.ClockSignals.Clocks.PeriodicRealClockperiodicRealClock
ClockedBlocks.Packaging.SerialPackager.GetRealgetReal
ClockedBlocks.Packaging.SerialPackager.GetIntegergetInteger
ClockedBlocks.Communication.SharedMemoryReadsharedMemoryRead
Modelica.Clocked.RealSignals.Sampler.AssignClock[3]assignClock1
Modelica.Clocked.IntegerSignals.Sampler.AssignClockassignClock2