Simulink Reference |
 |
Data Store Memory
Define a data store
Library
Signal Routing
Description

The Data Store Memory block defines and initializes a named shared data store, which is a memory region usable by Data Store Read and Data Store Write blocks with the same data store name.
Each data store must be defined by a Data Store Memory block. The location of the Data Store Memory block that defines a data store determines the Data Store Read and Data Store Write blocks that can access the data store:
- If the Data Store Memory block is in the top-level system, the data store can be accessed by Data Store Read and Data Store Write blocks located anywhere in the model.
- If the Data Store Memory block is in a subsystem, the data store can be accessed by Data Store Read and Data Store Write blocks located in the same subsystem or in any subsystem below it in the model hierarchy.
You initialize the data store by specifying a scalar value or an array of values in the Initial value parameter. The dimensions of the array determine the dimensionality of the data store. Any data written to the data store must have the dimensions designated by the Initial value parameter. Otherwise, an error occurs.
Data Type Support
A Data Store Memory block stores real or complex signals of any data type, including fixed-point data types, except int64
and uint64
.
Parameters and Dialog Box

- Data store name
- Specify a name for the data store you are defining with this block. Data Store Read and Data Store Write blocks with the same name will be able to read from and write to the data store initialized by this block.
- Data store write(W) and read(R) blocks
- This parameter lists all the Data Store Read and Data Store Write blocks that have the same data store name as the current block, and that are in the current (sub)system or in any subsystem below it in the model hierarchy. Double-click any entry on this list to highlight the block and bring it to the foreground.
- Initial value
- Specify the initial value or values of the data store. The dimensions of this value determine the dimensions of data that may be written to the data store.
- RTW storage class
- Specify the RTW storage class of the data store. For more information, refer to the Real-Time Workshop documentation.
- RTW type qualifier
- Specify a RTW type qualifier for the data store. This parameter is only enabled if a value other than
auto
is selected for the RTW storage class parameter. For more information, refer to the Real-Time Workshop documentation.
- Interpret vector parameters as 1-D
- If selected and the Initial value parameter is specified as a column or row matrix, the data store is initialized to a 1-D array whose elements are equal to the elements of the row or column vector.
Characteristics
Dimensionalized
|
Yes
|
Sample Time
|
N/A
|
See Also
Data Store Read, Data Store Write
| Coulomb and Viscous Friction | | Data Store Read |  |