Stateflow® and Stateflow® Coder Release Notes Previous page   Next Page

Known Software Limitations

This section describes known limitations in Version 6.2 (R14SP2).

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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. In the Model Explorer, it is possible to copy data objects between Stateflow charts and Embedded MATLAB Function blocks.

Fixed-Point Override Limitations

Stateflow implements the Simulink override of fixed-point numbers in Stateflow charts with the following exceptions:

RTW Code Generation Fails for Charts with no Output Data

In this release, RTW code generation sometimes fails when the model contains one or more Stateflow charts with no output data and one or more testpointed local data or states. The error message displayed in the MATLAB command window has the following signature.

Error: File: d:\R14\matlab\rtw\c\tlc\mw\capi.tlc Line: 359
Column: 44
Undefined identifier constString
Error: File: d:\R14\matlab\rtw\c\tlc\mw\capi.tlc Line: 359
Column: 62
The + operator only works on numeric arguments

The workaround for this problem is to create a dummy (unused) output data for the charts that have no output data.

This problem will be fixed in the next release.


Previous page  Upgrading from an Earlier Release Stateflow 6.1 and Stateflow Coder 6.1 Release Notes Next page

© 1994-2005 The MathWorks, Inc.