modelSharedMemoryRead

A block for reading data from a shared memory buffer
Diagram of SharedMemoryRead

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.Utilities.Icons.PartialClockedDeviceDriverIcon.

Information

Supports reading from 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
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
Interfaces.PackageOutpkgOut