Stateflow User's Guide Previous page   Next Page

Using Actions in Stateflow


Stateflow attaches actions to a state or transition through its label. The actions in action language can be broadcast events, condition statements, function calls, variable assignments and operations, and so on. Many are very similar to statements in C or MATLAB. Stateflow also defines categories for the actions that you specify, known as action types. This chapter describes the action types of states and transitions and the actions that they contain in the following sections:
Defining Action Types
Gives a description of each type of action language available to states and transitions and shows their behavior in an example.
Using Operations in Actions
Describes the available data operations in Stateflow action language.
Using Special Symbols in Actions
Learn the special symbols Stateflow uses to provide the user with special features in action language notation.
Calling C Functions in Actions
Describes the C functions that you can call directly in Stateflow action language.
Using MATLAB Functions and Data in Actions
Tells you how you can call MATLAB functions and access MATLAB workspace variables in action language, using the ml namespace operator or the ml function.
Using Data and Event Arguments in Actions
Tells you how to reference data defined at different levels of containment in a Stateflow chart when you use them as arguments for functions that you call in action language.
Using Arrays in Actions
Describes how to use Stateflow data arrays in action language.
Broadcasting Events in Actions
Describes event broadcasting and directed event broadcasting in action language.
Using Temporal Logic in Actions
You can test the occurrence of a specified multiple of events. Learn how to use temporal logic in Stateflow action language.
Using Bind Actions to Control Function-Call Subsystems
Gives a quick example of each type of action language available to Stateflow.


Previous page  Sizing Data by Expression Defining Action Types Next page

© 1994-2005 The MathWorks, Inc.