| Target Language Compiler | ![]() |
Overview of model.rtw File
Real-Time Workshop generates a model.rtw file from your Simulink model. The model.rtw file is a database whose contents provide a description of the individual blocks within the Simulink model. By selecting Retain .rtw file from the TLC debugging category on the Real-Time Workshop page of the Simulation Parameters dialog box, you can build a model and view the corresponding model.rtw file that was used.
model.rtw is an ASCII file of parameter-value pairs stored in a hierarchy of records defined by your model. A parameter-value pair is specified as
ParameterName value
where ParameterName (also called an identifier) is the name of the TLC identifier and value is a string, scalar, vector, or matrix. For example, in the parameter-value pair
. . NumDataOutputPorts 1 . .
NumDataOutputPorts is the identifier and 1 is its value.
RecordName {
.
.
}
A record contains parameter-value pairs and/or subrecords. For example, this record contains one parameter-value pair
DataStores {
NumDataStores 0
}
| Configuring TLC | Using Scopes in the model.rtw File | ![]() |