Technical data
A 
model.rtw
A-2
Model.rtw File Contents
This appendix describes the contents of the 
model.rtw
 file, which is created 
from your block diagram during the Real-Time Workshop build procedure, and 
is for use with the Target Language Compiler. The contents of the 
model.rtw
file is a “compiled” version of your block diagram. This appendix is provided so 
that you can modify the existing code generation or even create a new “code 
generator” to suit your needs. The general format of the 
model.rtw
 file is:
CompiledModel {
<TLC variables and records describing the compiled model>
}
The contents of the 
model.rtw
 file may change from release to release. The 
MathWorks will make every effort to keep the 
model.rtw
 file compatible with 
previous releases. Changes will be documented with each release. 
Table A-1: Model.rtw File Contents 
Variable/Record Name Description
Name
Name of the Simulink model from which this 
model.rtw
 file was 
generated.
Version
Version of the 
model.rtw
 file.
GeneratedOn
Date and time when the 
model.rtw
 file was generated.
Solver
Name of solver as entered in the 
Simulink Parameters
 dialog 
box.
SolverType
FixedStep
 or 
VariableStep.
StartTime
Simulation start time as entered in the 
Simulink Parameters
dialog box.
StopTime
Simulation stop time.
FixedStepOpts {
Only written if 
SolverType
 is 
FixedStep
.
FixedStep
Step size to be used.
}
VariableStepOpts {
Only written if 
SolverType
 is 
VariableStep.










