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

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
Modelica.Blocks.Logical.ZeroCrossingzeroCrossing1
Modelica.Blocks.Sources.BooleanExpressionenable
Modelica.Blocks.Sources.RealExpressionrealExpression1