Target Language Compiler    

Model.rtw File Overview

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 pane 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 name / parameter value pair

NumDataOutputPorts is the identifier and 1 is its value.

A record is specified as

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


  Contents of model.rtw Using Scopes in the model.rtw File