Technical data

The model.rtw File
2-3
The model.rtw File
Real-Time Workshop generates a model.rtw file from your Simulink model.
The
model.rtw file is a hierarchical database whose contents provide a
description of the individual blocks within the Simulink model.
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 RTW
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.
A record is specified as:
RecordName {
.
.
}
A record contains parameter-value pairs and/or subrecords. For example, this
record contains one parameter-value pair:
DataStores {
NumDataStores 0
}
The following reduced example shows a record, Block, with several
parameter-value pairs (
Type, Name, Identifier, and so on), and three
subrecords, each called
Parameter. Block is a subrecord of System, which is a
subrecord of
CompiledModel.