Stateflow |
 |
Define the Stateflow Interface
Make connections in the Simulink model between other blocks and the Stateflow block:
- Enter
simulink
in the MATLAB Command Window to invoke Simulink.
- Add a Sine Wave block (located in the Simulink Sources block library) and connect it to the input trigger port of the Stateflow block.
- Add a Scope block (located in the Simulink Sinks block library) and connect it to the Sine Wave block output as well.
- Your model should look similar to this.

| Define Input Events | | Define Simulink Parameters |  |