Release 11 New Features |
Stateflow 2.0
Stateflow 2.0 introduces many significant enhancements in the following areas:GUI Enhancements
Enhanced Debugger User Interface
Drop down option lists in the debugger dialog allow you to quickly choose the kind and scope of debug information to display when running a model. For example, you can choose to show active states for all charts or only loaded charts, all data or only watched data, all breakpoints or only breakpoints for loaded charts, and so on.Enhanced Explorer Interface
The Stateflow 2.0 Explorer allows you to edit state and data properties displayed in the Explorer's content pane. You no longer have to bring up a dialog box in order to change state or data properties. The Stateflow 2.0 Explorer allows you to apply property changes to groups of objects as well as individual objects. You can also create objects by copying other objects.Chart Styles
Stateflow 2.0 allows you to define and apply chart styles to a chart. A chart style specifies the colors of various chart elements, such as states, transitions, backgrounds, and so on. A chart style also specifies the font used to render labels for states, transitions, and other chart objects. A chart style allows you to specify the colors and fonts of all chart elements with a single menu selection. Stateflow 2.0 comes with nine standard styles: Classic, Antique, Rose, GrayScale, Neon, Desert, Slate, Valerie, Factory.Enhanced Target Builder Interface
The new Stateflow 2.0 target builder interface greatly speeds and simplifies the process of specifying automatic code generation and custom code options for building simulation and stand-alone targets.Modeling Features
Boxes
Boxes are graphical groupings of objects that can be cut, pasted, moved, and annotated as a unit. Boxes allow you to break a large, complex chart into more manageable modules without having to introduce additional states into your model.Chart Libraries
Stateflow 2.0 allows you to create and use chart libraries. A chart library is a Simulink block library that includes Stateflow charts. You can include charts from a library in a model by cutting-and-pasting or dragging-and-dropping the charts from the library to the model. Chart libraries facilitate chart reuse. For example, updating a chart in a library automatically updates all instances of the chart included in Stateflow models.Arrays
Stateflow 2.0 models can define and manipulate data arrays having an arbitrary number of dimensions.Support for Simulink Data Types
Stateflow 2.0 supports the same set of data types as Simulink 3.0. Stateflow checks to ensure that the data types of input and output ports match the data types of the Simulink blocks to which those ports are connected.Directed Broadcasting of Implicit Events
Implicit events, such as entering a chart or state, previously woke up the entire chart in which they occurred. In Stateflow 2.0, implicit events wake up only states that listen for them. This speeds up execution of a model.Enhance Model Printing
The Stateflow 2.0 Print Book option on the File menu of the Chart Editor generates a detailed, cross-referenced report on the Stateflow components of a Stateflow model, including the diagram of each chart in the model and the properties of each chart's elements. The command supports both PDF (Adobe Acrobat) and PostScript output formats. The optional Simulink Report Generator allows you to produce a comprehensive report on a model that includes Simulink as well as Stateflow blocks.Code Generation
Incremental Code Generation
When generating code from a model, Stateflow 2.0 generates code only for charts that have changed nongraphically since the last time code was generated. In particular, Stateflow 2.0 codes and builds each chart as a separate module when generating a simulation target. Each chart is coded and built only if the chart has changed in such a way as to affect code generation since the last time the chart was built. This dramatically speeds the rebuilding of large models that have changed slightly.Coder Optimizations
The Stateflow 2.0 code generator removes dead code and inlines functions to reduce the size and increase the speed of targets significantly.