Main Content

Shared Memory Pack

Shared memory pack

  • Shared Memory Pack block

Libraries:
Simulink Real-Time / Shared Memory

Description

The Shared Memory Pack block packs the specified partition structure into an unstructured double word array vector. It converts one or more Simulink® signals of varying data types into the vector. Typically, the input to a pack block is the output from a write block. The Simulink interface is not aware of structures; pass the output of each structure segment as input to the Shared Memory Pack block.

Memory partitions consist of groups of Simulink signals, which are combined into blocks (packets) of 32-bit words. Before you begin to configure this block, be sure that you have a predefined shared memory partition structure as required by the shared memory manufacturer.

This block ignores the Address field of the partition structure.

Parameters

expand all

Enter the name of the predefined shared memory partition structure.

Programmatic Use

Block Parameter: partition

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2006a