blockSharedMemoryWrite

A block for writing data in a shared memory

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Utilities.Icons.SharedMemoryIcon (Base icon for shared memory blocks), Modelica_DeviceDrivers.Blocks.Communication.Internal.PartialSampleTrigger (Common code for triggering calls to external I/O devices).

Information

Supports writing to a named shared memory partition. The name of the shared memory partition is provided by the parameter memoryID. If the shared memory partition does not yet exist during initialization, it is created.

Parameters

TypeNameDefaultDescription
Activation
BooleanenableExternalTrigger (from PartialSampleTrigger)falsetrue, enable external trigger input signal, otherwise use sample time settings below
SI.PeriodsampleTime (from PartialSampleTrigger)0.1Sample period of component
SI.TimestartTime (from PartialSampleTrigger)0First sample time instant
Shared memory partition
BooleanautoBufferSizefalsetrue, buffer size is deduced automatically, otherwise set it manually
IntegeruserBufferSize16*1024Buffer size of shared memory partition in bytes (if not deduced automatically)
StringmemoryID"sharedMemory"ID of the shared memory buffer
Booleancleanuptruetrue, unlink shared memory at process termination, otherwise no unlink ⇒ 'memoryID' can still be opened (Linux specific, otherwise no effect)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputtrigger (from PartialSampleTrigger)
Interfaces.PackageInpkgIn