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

Chapter 5
Stateflow 5.1.1 and Stateflow Coder 5.1.1 Release Notes


New Features

This section introduces features and enhancements added in Stateflow 5.1.1 and Stateflow Coder 5.1.1, which is part of Release 13 with Service Pack 1.

Bind Actions

Bind actions bind specified data and events to a state. Data bound to a state can be changed by the actions of that state or its children. Other states and their children are free to read the bound data, but they cannot change it. Events bound to a state can be broadcast only by that state or its children. Other states and their children are free to listen for the bound event, but they cannot broadcast it.

Binding a function call event to a state also binds the function call subsystem that it calls. In this case, the function call subsystem enables when the binding state is entered and disables when the binding state is exited.

Bind actions are introduced in the online release of Stateflow 5.1.1 and are documented in Bind Actions and Using Bind Actions to Control Function Call Subsystems in Stateflow online documentation.

New API method idToHandle

The Stateflow API method idToHandle is introduced to accomodate customers using old-style API scripts, that use integer IDs for Stateflow objects. idToHandle is a method of the Root object that converts the integer ID of a particular Stateflow object into an API handle to the object.

In the following example, the data objectID has the value of the ID for a particular Stateflow object:

In this example, you use the API handle objectHandle to change the name of the object.


Previous page  Known Software and Documentation Problems Major Bug Fixes Next page

© 1994-2005 The MathWorks, Inc.