Target Language Compiler    

Chapter 4
Contents of
model.rtw


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

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 is the identifier and 1 is its value.

A record is specified as

A record contains parameter-value pairs and/or subrecords. For example, this record contains one parameter-value pair


 Configuring TLC Using Scopes in the model.rtw File