User`s guide
Upgrading from an Earlier Release
5-17
For further information see “Simulink Data Objects and Code Generation” in
the Real-Time Workshop User’s Guide.
S-Function Target MEX-Files Must Be Rebuilt
S-function MEX-files generated by the S-function target under Release 11 are
not compatible with Release 12. The incompatibilities are due to new features,
such as parameter pooling, introduced in Release 12.0.
If you have built S-function MEX-files with the S-function target under Release
11, you must rebuild them. See “The S-Function Target” in the Real-Time
Workshop User’s Guide for further information.
TLC Compatibility Issues
model.rtw File Format Changes
The format of the model.rtw file has changed. For further information, see
“model.rtw Changes Between Real-Time Workshop 4.0 and 4.1” in the Target
Language Compiler Reference Guide.
Reordering of BlockTypeSetup and BlockInstanceSetup Calls
During the initialization phase of code generation, the Target Language
Compiler makes a pass over all blocks in the model and executes several
functions, including:
•Each block’s
BlockTypeSetup function the first time that block type is
encountered.
•Each block’s
BlockInstanceSetup function. BlockInstanceSetup is called
for all instances of a given block type in the model.
The order in which these calls are made is significant, because the
BlockInstanceSetup function may depend upon global variables that are
initialized by the
BlockTypeSetup function.
In Release 12.1, the
BlockTypeSetup function is called before the
BlockInstanceSetup. This corrects a problem in previous releases, where
BlockInstanceSetup was erroneously called first. You may need to change
your S-functions or block implementations if they depend upon the previous
behavior.