| Stateflow® and Stateflow® Coder Release Notes |
 |
Known Software Limitations
This section describes known limitations in Version 6.0 (R14).
Embedded MATLAB Function Block/Stateflow Dependencies
The new Embedded MATLAB Function block in the User Defined Functions library for Simulink is using the same underlying infrastructure as Stateflow for simulation (through code-generation), debugging, and integration with Real-Time Workshop. This dependency has the following ramifications:
- The simulation settings for the Stateflow simulation target (
sfun) apply equally to all Stateflow charts and Embedded MATLAB blocks in the model. For example, turning debugging on/off would globally affect the charts as well as Embedded MATLAB Function blocks.
- Some of the compile-time warnings and run-time errors from the Embedded MATLAB Function block mention Stateflow as the source of the warning or error.
- Optimization settings that are specific to Stateflow in the RTW configuration object apply equally to Embedded MATLAB Function blocks. These optimization settings appear for the Optimization node in the Simulink Configuration Parameters dialog only when a Stateflow block or an Embedded MATLAB Function block is present in the model. They are identified and described in the topic Configuring Stateflow Blocks in nonLibrary Models for Real-Time Workshop in Stateflow documentation.
- Selecting the Rebuild All button in the Embedded MATLAB Editor or in a Stateflow diagram editor regenerates the simulation code for all the Stateflow charts and all Embedded MATLAB function blocks in the model.
- In the Model Explorer, the icon for the library links of Embedded MATLAB Function blocks is identical with the icon used for Stateflow link charts.
- In the Model Explorer, it is possible to copy data objects between Stateflow charts and Embedded MATLAB Function blocks.
| Note
An Embedded MATLAB Function block transparently shares Stateflow infrastructure but does not require a Stateflow license.
|
Fixed-Point Override Limitations
Stateflow implements the Simulink override of fixed-point numbers in Stateflow charts with the following exceptions:
- Stateflow does not implement fixed-point override for scaled doubles. If you specify this option for override, an error results.
- Fixed-point override is not supported at all for Stateflow library charts. Specifying fixed-point override for library charts results in a warning.
| Upgrading from an Earlier Release | | Stateflow 5.1.2 and Stateflow Coder 5.1.2 Release Notes |  |
© 1994-2005 The MathWorks, Inc.