Stateflow |
 |
Quick Start
In this section, you use Stateflow to create, run, and debug a simple power switch model. The steps you take in this quick start to learning Stateflow are as follows:
- Look at the Power Switch Model -- Gives you an overview of the model you build in this Quick Start section.
- Create a Simulink Model -- Start a model in Simulink containing a Stateflow block.
- Create a Stateflow Diagram -- Start a Stateflow diagram for the Stateflow block in your Simulink model.
- Define Input Events -- Define the input events from Simulink that trigger the execution of your Stateflow diagram.
- Define the Stateflow Interface -- Add a source of triggers in the Simulink model for executing the Stateflow diagram.
- Define Simulink Parameters -- Define operating parameters for the Simulink model during simulation.
- Parse the Stateflow Diagram -- Check the Stateflow diagram for syntactical errors.
- Run a Simulation -- Go through the steps for simulating your model.
- Debug the Model During Simulation -- Tells you how you can use the Stateflow Debugger to carefully monitor all aspects of your quick start model during simulation.
- Save the Model -- Save the model that you created and simulated in the Quick Start section.
| Stateflow and Simulink Design Approaches | | Look at the Power Switch Model |  |