| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
This table summarizes what's new in V 3.0 (R11):
| New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems | Related Documentation at Web Site |
|---|---|---|---|
| Yes Details below | No | No | No |
New features and changes introduced in this version are:
You can now use temporal conditions (before, after, at, every time) to determine the activation of transitions and duration of state activation. Temporal logic provides a simple paradigm for event scheduling and allows your Stateflow chart to express clearly and simply the time-dependent behavior of a system.
This feature is fully documented in Using Temporal Logic in State Actions and Transitions in the Stateflow and Stateflow Coder User's Guide.
You can now create charts within charts. A chart that is embedded in another chart is called a subchart. A subchart can contain anything a top-level chart can, including other subcharts. In fact, you can nest subcharts to any level. A subchart appears as a labeled block in the chart that contains it. You can create transitions among objects residing in different subcharts existing at the same level or at different levels. A transition that crosses subchart boundaries in this fashion is called a supertransition.
Subcharts help you reduce a complex chart to a set of simpler, hierarchically organized diagrams. This makes the chart easier to understand and maintain, without changing the semantics of the chart in any way.
Subchart boundaries are ignored when you simulate and generate code from Stateflow charts.
This feature is fully documented in Using Subcharts to Extend Charts in the Stateflow and Stateflow Coder User's Guide.
A graphical function is a function defined by a flow graph. Graphical functions are similar to textual functions, such as C and MATLAB functions. Like textual functions, graphical functions can accept arguments and return results. You invoke graphical functions in transition and state actions in the same way you invoke C and MATLAB functions. Unlike C and MATLAB functions, however, graphical functions are full-fledged Stateflow objects. You use the Stateflow Editor to create them, and they reside in your model along with the charts that invoke them. This makes graphical functions easier to create, access, and manage than textual functions, whose creation requires external tools and whose definitions reside separately from the model.
This feature is fully documented in Using Graphical Functions to Extend Actions in the Stateflow and Stateflow Coder User's Guide.
The Symbol Autocreation Wizard helps you add missing data and events to your Stateflow charts. When you parse the chart or run the simulation, this wizard detects data and events that you have not previously defined. The wizard then opens automatically and heuristically recommends attributes for the unresolved data or events to help you define these symbols.
This feature is fully documented in Symbol Autocreation Wizard in the Stateflow and Stateflow Coder User's Guide.
The Stateflow Editor now contains a toolbar containing buttons for the most commonly used editing and simulation commands. The toolbar saves searching through menus for these commands.
This toolbar contains buttons for navigating a chart hierarchy.
You can now create straight lines between junctions. Transitions that are almost straight are automatically snapped straight during edit time. The snap-to-grid functionality helps align connected junctions vertically and horizontally.
Data items can now be initialized from identically named variables in the MATLAB workspace and/or copied back to the workspace at the end of a simulation. Workspace-initialized constants consume no memory in generated code.
This feature is fully documented in the Stateflow and Stateflow Coder User's Guide.
Stateflow Explorer now allows you to pick up properties from one data/event/target item and apply them to another data/event/target item or a group of items. This speeds up the process of creating charts that have objects with similar sets of properties.
This feature is fully documented in the Stateflow and Stateflow Coder User's Guide.
In the Stateflow Explorer, an arrow distinguishes icons of library links from those of actual charts. Clicking a library link icon opens the library chart in the Stateflow Editor.
![]() | Version 4.0 (R12) Stateflow and Stateflow Coder Software | Compatibility Summary for Stateflow and Stateflow Coder Software | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |