| Target Language Compiler | ![]() |
model.rtw File Contents
This appendix is provided to help you modify existing block or target code generation, generate code for custom S-functions, or even create a new code generator to suit your needs. It describes the contents of the model.rtw file, which is created to represent your block diagram for the Real-Time Workshop build procedure, and is then processed by the Target Language Compiler. The contents of the model.rtw file is a compiled version of your block diagram. The model.rtw file contains all the information necessary to define behavioral properties of the model for the purpose of generating code. Most graphical model information beyond signal, port, and block connectivity is excluded from the model.rtw file.
The general format of the model.rtw file is
Within CompiledModel, a series of hierarchical records map components of the model using name-value pair syntax. As in C programs, each record is delimited (scoped) by {...}, but unlike C code, model.rtw does not contain any functions or operators, only descriptors.
| model.rtw | Using the model.rtw File | ![]() |