Target Language Compiler    

Data Store Information

The model.rtw records containing data store information include defaults for the data types and an indication whether or not the data is complex. The primary purpose of the DataStore record is to set up memory for implementing the data store. Each instance of a Data Store Read block that uses the same data store variable name is allowed to read the memory location(s) while Data Store Write blocks are allowed to write to the designated memory location(s). Data Store Read and Data Store Write blocks are placed under the block instance section of the model.rtw file.

Table A-10: Model.rtw Data Store Information 
Variable/Record Name
Description
DataStoreDefaults {

Defaults for the data store records.

  DataTypeIdx

0: Default is real_T.

  ComplexSignal

no: Default is not complex.

}

DataStores {

Record giving the data stores found in the block diagram.

  NumDataStores

Number of data stores in the block diagram.

  DataStore {

One record for each data store.

    Name

Name of block declaring the data store.

    SLName

Unmodified Simulink name. This is only written if it is not equal to Name.

    MemoryName

Name of the data store memory region.

    Identifier

Unique identifier across all data stores.

    Index

[dataStoreIndex, dataStoreWidth].

    Dimensions

Vector of the form [nRows, nCols] for the signal. Only written if number of dimensions is greater than 1.

    InitValue

Initial value for the data store.

  }

}


 External Inputs and Outputs Block I/O Information