Real-Time Workshop Release Notes |
Upgrading from an Earlier Release
This section describes the upgrade issues involved in moving from the Real-Time Workshop 4.0 (Release 12.0) to the Real-Time Workshop 4.1.
For information about upgrading from a release earlier than 4.0, see the Upgrading from an Earlier Release in the Real-Time Workshop 4.0 Release Notes.
RTWInfo Property Changes
If you use the Simulink Data Object classes Simulink.Signal
or Simulink.Parameter
, or have implemented classes derived from these, note the following information concerning the RTWInfo
properties.
In Release 12.0, the RTWInfo
class had a TypeQualifier
property, corresponding to the RTW storage type qualifier field of signal ports and parameters.
Real-Time Workshop 4.1 now supports creation of custom storage classes, removing the need for the TypeQualifier
property. We recommend that you use custom storage classes when type qualification is needed.
By default, the TypeQualifier
property of RTWInfo
objects is no longer visible in the Simulink Data Explorer. Also, the TypeQualifier
property is no longer written to ObjectProperties
records in the model
.rtw
file. For backward compatibility, the TypeQualifier
property remains active. The property can be set and retrieved through a direct reference. For example,
You can make the TypeQualifier
property visible in the Simulink Data Explorer for the duration of a MATLAB session. To do this, execute the following command prior to opening the Simulink Data Explorer),
The above command also directs the Real-Time Workshop to include the TypeQualifier
property in ObjectProperties
records in the model
.rtw
file.
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.
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:
BlockTypeSetup
function the first time that block type is encountered.
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.
Obsolete Code Generation Variables
The code generation variables FunctionInlineType
and PragmaInlineString
are now obsolete. These variables controlled the generation of inlined functions. In the current release, you can generate inlined functions from subsystems, as described in Nonvirtual Subsystem Code Generation in the Real-Time Workshop User's Guide.
Bug Fixes | Known Software Problem |