Stateflow User's Guide Previous page   Next Page

Controlling with States and Transitions


This chapter teaches you about Stateflow by guiding you through the creation and execution of a simple control model. This model consists of a single Stateflow block and some supporting Simulink blocks. The contents of the Stateflow block is a simple Stateflow diagram. As you proceed through the following sections, you improve both the Stateflow diagram and the Simulink model that calls it. In the process, you increase your knowledge and understanding of Stateflow states and transitions.
Building an On-Off Control Model
Get started quickly building a control model with Stateflow.
Simulating a Stateflow Diagram
Simulate the control model normally and with the Stateflow Debugging window.
Guarding Transitions with Event Triggers
Guard the transitions of a Stateflow diagram to execute only with the occurrence of specific events.
Modifying Output Data with Actions
Send modified data from a Stateflow diagram to the Simulink model.
Simulating Event Triggers and Modified Output Data
Simulate the guarded transitions and modified output data of the improved control model.


Previous page  Using Stateflow on a Laptop Computer Building an On-Off Control Model Next page

© 1994-2005 The MathWorks, Inc.