Stateflow User's Guide Previous page   Next Page

Opening the Diagram for a Stateflow Block

You use Stateflow blocks to program the control of an object in the physical plant that you model in Simulink. For example, you might want the Stateflow block to decide if plant pressure or temperature is too high and make a decision to turn on a motor-driven device to reduce plant temperature or pressure. You program this control in a Stateflow diagram for a Stateflow block in Simulink.

Open the Stateflow diagram for the Controller block as follows:

  1. In the Simulink window, double-click the Controller block.
  1. An empty Stateflow diagram editor window appears, as shown.

    In the empty window you just opened, notice the following:


Previous page  Saving a Simulink Model Drawing States in Stateflow Diagrams Next page

© 1994-2005 The MathWorks, Inc.