Using Simulink    
Data Store Write

Write data to a data store.

Library

Signals & Systems

Description

The Data Store Write block writes the block input to a named data store.

Each write operation performed by a Data Store Write block writes over the data store, replacing the previous contents.

The data store to which this block writes is determined by the location of the Data Store Memory block that defines the data store. For more information, see Data Store Memory. The size of the data store is set by the Data Store Memory block that defines and initializes the data store. Each Data Store Write block that writes to that data store must write the same amount of data.

More than one Data Store Write block can write to the same data store. However, if two Data Store Write blocks attempt to write to the same data store at the same simulation step, results are unpredictable.

Data Type Support

A Data Store Write block accepts a real signal of type double.

Parameters and Dialog Box

Data store name
The name of the data store to which this block writes data.
Sample time
The sample time, which controls when the block writes to the data store. The default, -1, indicates that the sample time is inherited.

Characteristics

Sample Time
Continuous or discrete
Dimensionalized
Yes


 Data Store Read Data Type Conversion