| Target Language Compiler | ![]() |
model.rtw Changes Between
Real-Time Workshop 5.0 and 4.1
This release consists of significant alterations to the model.rtw file.
System records has been reduced to M, where M <= N, and N is the number of actual systems in the model. This is the direct result of the code reuse capabilities introduced in Real-Time Workshop 5.0.
Prototype record in the System record was renamed to Interface to better reflect what it represents. In addition, many fields within the Interface record were added and others had name improvements.
DataTypes.SLName was renamed to DataTypes.DTName to reflect that this is not a remapped Simulink name (SLName) due to special characters.
DataStores record was removed and this information has been incorporated into the DWorks record.
Auto -- Generate a reusable function if there is more than one reference to the system, and are structurally identical. If this is not possible, inline it.
Inline -- Always inline the system (never reuse it).
Reusable function -- Always generate a function for the system regardless of how many references exist to the system. This function includes arguments that are passed.
Function -- Always generate a (non-reusable) function for the system regardless of how many references exist to the system. Such functions access the generated code global data structures, rtB, rtX, etc., and do not have arguments.
rtP : A flat structure containing the 'auto' tunable variables.
rtCP_name : Individual variables for the #define/const parameters (just like rtC).
#define and const block I/O elements are handled in same manner.
rtU, rtY) are now created as flat structures.
ChildSystemIndices and ChildSystemBlockIndices. These have been replaced by ChildSystems within the scope of System records.
| Inline Parameters On Code Structure | General Information and Solver Specification | ![]() |