| Simulink Reference | ![]() |
Library
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.
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:
| Note You can use signal objects in addition to or instead of Data Store Memory blocks to define data stores. See Working with Data Stores for more information. |
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
The Data Store Memory block stores real or complex signals of any data type supported by Simulink, including fixed-point data types.
For a discussion on the data types supported by Simulink, refer to Data Types Supported by Simulink in the Using Simulink documentation.
Parameters and Dialog Box
The Main pane of the Data Store Memory block dialog appears as follows:
Simulink.Signal object having the same name. If such an object is not found, Simulink halts the compilation and displays an error. Otherwise Simulink compares the attributes of the signal object with the corresponding attributes of the data store memory block. If the block and the object attributes are inconsistent, Simulink halts model compilation and displays an error.
These following parameters pertain to code generation and have no effect during model simulation:
See "Block States: Storing and Interfacing" in the Real-Time Workshop® documentation for more information.
The Data types pane of the Data Store Memory block dialog appears as follows:
auto, Simulink sets the data type of the data store to the data type of the data store read and write blocks that access it. If you select Specify via dialog, the dialog box displays the Output data type and Output scaling value fields, which enable you to specify fixed-point and other data types not listed in the drop-down menu.
Specify via dialog for the Data type parameter.
Specify via dialog for the Data type parameter.
Characteristics
| Sample Time |
N/A |
| Dimensionalized |
Yes |
See Also
Data Store Read, Data Store Write
| Counter Limited | Data Store Read | ![]() |
© 1994-2005 The MathWorks, Inc.