| Version 7.0 (R2007b) Stateflow® and Stateflow® Coder™ Software Release Notes | ![]() |
This table summarizes what's new in V7.0 (R2007b):
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems | Related Documentation at Web Site |
|---|---|---|---|
| Yes Details below | Yes—Details labeled as Compatibility Considerations, below. See also Summary | Bug
Reports | No |
New features and changes introduced in this version are:
Enhanced Continuous-Time Support with Zero-Crossing Detection
Support for Inheriting Data Properties from Simulink® Signal Objects Via Explicit Resolution
Common Dialog Box Interface for Specifying Data Types in Stateflow® Charts and Simulink® Models
Support for Animating Stateflow® Charts in Simulink® External Mode
Loading 2007b Stateflow® Charts in Earlier Versions of Simulink® Software
Using enhanced support for modeling continuous-time systems, you can do the following:
Detect zero crossings on state transitions, enabling accurate simulation of dynamic systems with modal behavior.
Support the definition of continuous state variables and their derivatives for modeling hybrid systems as state charts with embedded dynamic equations
For more information, see Modeling Continuous-Time Systems in Stateflow® Charts in the Stateflow® and Stateflow® Coder™ User's Guide documentation.
Previously, Stateflow charts implemented continuous time simulation without maintaining mode in minor time steps or detecting zero crossings. Accurate continuous-time simulation requires several constraints on the allowable constructs in Stateflow charts. Charts created in earlier versions may generate errors if they violate these constraints.
Using a new super step property, you can enable Stateflow charts to take multiple transitions in each simulation time step. For more information, see Executing a Chart with Super Step Semantics in the Stateflow and Stateflow Coder User's Guide.
You can use a new data property, Data Must Resolve to Simulink signal object, to allow local and output data to explicitly inherit the following properties from Simulink.Signal objects of the same name that you define in the base workspace or model workspace:
Size
Type
Complexity
Minimum value
Maximum value
Initial value
Storage class (in Real-Time Workshop® generated code)
For more information, see Resolving Data Properties from Simulink® Signal Objects in the Stateflow and Stateflow Coder User's Guide.
Stateflow software no longer performs implicit signal resolution, a feature supported for output data only. In prior releases, Stateflow software attempted to resolve outputs implicitly to inherit the size, type, complexity, and storage class of Simulink.Signal objects of the same name that existed in the base or model workspace. No other properties could be inherited from Simulink® signals.
Now, local as well as output data can inherit additional properties from Simulink.Signal objects, but you must enable signal resolution explicitly. In models developed before Version 7.0 (R2007b) that rely on implicit signal resolution, Stateflow charts may not simulate or may generate code with unexpected storage classes. In these cases, Stateflow software automatically disables implicit signal resolution for chart outputs and generates a warning at model load time about possible incompatibilities. Before loading such a model, make sure you have loaded into the base or model workspace all Simulink.Signal objects that will be used for explicit resolution. After loading, resave your model in Version 7.0 (R2007b) of Stateflow software.
You can use the same dialog box interface for specifying data types in Stateflow charts and Simulink models. For more information, see Setting Data Properties in the Data Dialog in the Stateflow and Stateflow Coder User's Guide.
When running Simulink models in external mode, you can now animate states, and view Stateflow test points in floating scopes and signal viewers. For more information, see Animating Stateflow® Charts in the Stateflow and Stateflow Coder User's Guide.
These Real-Time Workshop targets support Stateflow chart animation in external mode:
| Real-Time Workshop Target | External Mode Support | Support for Stateflow Chart Animation in External Mode |
|---|---|---|
| GRT (generic real-time) | R10 | Yes |
| VxWorks® / Tornado® | R10 | Yes |
| RTWin (Real-Time Windows) | R11 | Yes |
| xPC | R12 * | No ** |
| ERT (embedded real-time) | R13 | Yes |
| RSIM (rapid simulation) | R13 | Yes |
| MPC5xx | R2007a | No |
| C166® | R2007a | No |
| TI's C6000™ | R2007a | Yes |
| TI's C2000™ | R2007b | No |
| Rapid Accelerator | R2007b | Yes |
| dSPACE® RTI | R12.1 *** | No |
Note
|
Stateflow Coder code generation software supports the Target Function Library published by Real-Time Workshop® Embedded Coder™ software, allowing you to map a subset of built-in math functions and arithmetic operators to target-specific implementations. For more information, see Replacing Operators with Target Functions and Replacing C Math Library Functions with Target-Specific Implementations in the Stateflow and Stateflow Coder User's Guide.
You can now define fixed-point parameters in Truth Table blocks.
If you save a Stateflow chart in release 2007b, you will not be able to load the corresponding model in earlier versions of Simulink software. To work around this issue, save your model in the earlier version before loading it, as follows:
In the Simulink model window, select File > Save As.
In the Save as type field, select the version in which you want to load the model.
For example, if you want to load the model in the R2007a version of Simulink software, select Simulink 6.6/R2007a Models (#.mdl).
In previous releases, there was a bug where a default transition action occurred more than once if you used a history junction in a state containing only a single substate. The history junction did not remember the state's last active configuration unless there was more than one substate. This bug has been fixed.
![]() | Version 7.1 (R2008a) Stateflow® and Stateflow® Coder™ Software | Version 6.6.1 (R2007a+) Stateflow® and Stateflow® Coder™ Software | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |