In Release 14, the Real-Time Workshop build process failed if you set your configuration parameters as follows:
- RTW system target file on the Real-Time Workshop pane specified an ERT target
- You selected the Create Simulink (S-function) block option and cleared the Support floating-point numbers option on the Real- Time Workshop/Interface pane.
This is fixed in Release 14SP1.
In Release 14, if you configured a model such that you selected both theTerminate function requiredandGenerate reusable codeoptions on the Real-Time Workshop/Interface pane, Real- Time Workshop could generate code that would fail to compile. This is fixed in Release 14SP1.
In Release 14, the Real-Time Workshop Embedded Coder could fail to generate an S-Function for an ERT target if you cleared (disabled) the Inline parameters option on the Optimization panel of the Configuration Parameters dialog. If a failure occurred, the coder generated an S-function C file that failed to compile, and an error message similar to the following would appear:
structure has no member named `InitialOutput'This bug is fixed in Release 14SP1.
In Release 14, Real Time Workshop Embedded Coder could generate code that fails to compile when both of the following conditions existed:
- The model used the Model Reference feature.
- You selected the Suppress error status in real-time model data structure option on the Interface pane under Real-Time Workshop on the Configuration Parameters dialog.
This problem has been fixed in Release 14SP1.
In previous releases, it was possible for the Data Store Memory block to
generate uncompilable code if the associated data was defined to be
of a nonaddressable custom storage class (for example,
GetSet). This is fixed in Release 14SP1.
The following problems with data initialization in generated code have been fixed in Release 14SP1:
A regression introduced in Release 14 caused Real-Time Workshop to ignore the Remove root level I/O initialization option, and use the Remove internal state zero initialization option setting to control initialization of root level I/O instead.
In earlier releases, Real-Time Workshop did not generate intialization code for internal states, regardless of whether you selected the Remove internal state zero initialization option, if all the data was of a floating-point type and you selected the Use memset to initialize floats and doubles to 0.0 option.
The tooltip for Use memset to initialize floats and doubles to 0.0 did not state that it applied only to internal data for it to be accurate.
In Release 14, if both of the following conditions existed for an ERT target build, compilation of
rtwlibwould fail:
- You cleared (did not select) the Support complex numbers option on the Real-Time Workshop:Interface subpane of the Configuration Parameters dialog
- You specified compiler optimization options by including OPT_OPTS in the make command line
This is fixed in Release 14SP1.
Prior to Release 14SP1, the default setting for data initialization for predefined Simulink custom storage classes (CSCs) was
Staticexcept forMacro/ImportFromFile/GetSet. The default data initialization setting has been changed toAuto, such that:
- For parameters, Static initialization is used (no change).
- For signals and states, Dynamic initialization is used, which is consistent with the built-in Simulink storage classes.
Note that you can suppress dynamic initialization by selecting the following Configuration Parameters dialog options:
- Optimization->Data initialization->Remove root level I/O zero initialization - controls dynamic initializtaion of root level I/O
- Optimization->Data initialization->Remove internal state zero initialization - controls dynamic initialization of states and nonroot level I/O
In Release 14, you could not specify the full (absolute) or relative path for header files used by custom storage classes (for example,
ExportToFileandImportFromFile).In Release 14SP1, you can specify header files for imported data by using just the file name (without any directories) or by using the absolute or relative path. The filename is used exactly as specified (no extension is added). If you specify a relative path, specify the path relative to the directory in which code generation is initiated.
For files generated by the Real-Time Workshop (such as the header file for exported data), you must specify the filename without any directories. If you do not provide the appropriate extension Real-Time Workshop automatically adds
.hfor header files and.cfor source files.
In Release 14, the section "Utilities for Accessing Model Configuration Properties" in the Real-Time Workshop Embedded Coder documentation discussed use of the utility functionsuget_paramanduset_paramto automate model configuration. These functions are being obsoleted. You should now useget_paramandset_paraminstead, as explained in the Release 14SP1 documentation.
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |