| Stateflow User's Guide | ![]() |
Creating a Simulink Model with a Stateflow Block
In Simulink, you use blocks to create a simulated model of a physical plant. Stateflow blocks are a part of Simulink models. You use Stateflow blocks in Simulink models to control objects in the physical plant, for example, a motor, a pump, or a fan.
In this topic, you begin the process of building an example model that uses Stateflow on-off control. Create and save a Simulink model with a single Stateflow block in it using the following steps:
Chart.
Controller, as shown.
Now that the Stateflow block is labeled Controller, you refer to this block in the Simulink model as the "Controller Stateflow block" or just the "Controller block."
| Building an On-Off Control Model | Saving a Simulink Model | ![]() |
© 1994-2005 The MathWorks, Inc.