User`s guide

1 Introduction to the Real-Time Workshop
1-18
example.rtw,whichisthe.rtw file associated with A Simple Simulink Model”
on page 1-17:
Note that
model.rtw files are similar in appearance to model.mdl files
generated by Simulink. For more information on
.rtw files, see the Target
CompiledModel {
Name "example"
.
.
.
System {
Type root
.
.
.
}
NumBlocks 3
.
.
.
}
Block {
Type Sin
.
.
.
}
Block {
Type Gain
.
.
.
}
Block {
Type Outport
.
.
.
}
}
All compiled information is placed
within the CompiledModel record
.
This parameter value pair identifies the
name of your model.
Your model consists of one or more
system records. There is one record for
your “root” window and one record for
each conditionally executed subsystem.
This is the number of nonvirtual blocks
in this system record. A nonvirtual block
is any block that performs some
algorithm, such as a gain block. A virtual
block is a “connection” or graphical
block, for example, a Mux block
.
There is only one block record for each
nonvirtual block in this system record.
The block record contains information
such as the width of the input and
output ports.