Stateflow    
stateflow

Open the Stateflow model window

Syntax

Description

The global stateflow method opens the Stateflow model window. The model contains an untitled Stateflow block, an Examples block, and a manual switch. The Stateflow block is a masked Simulink model and is equivalent to an empty, untitled Stateflow diagram. Use the Stateflow block to include a Stateflow diagram in a Simulink model.

Every Stateflow block has a corresponding S-function target called sfun. This target is the agent Simulink interacts with for simulation and analysis.

Arguments

None

Returns

None

Example

This example shows how to open the Stateflow model window and use a Stateflow block to create a Simulink model:

  1. Invoke Stateflow.
  1. The Stateflow model window and an untitled Simulink model containing a Stateflow block are displayed.

  1. Double-click the untitled Stateflow block in the untitled Simulink model to invoke a Stateflow editor window.

  2. Create the underlying Stateflow diagram.

  sourcedTransitions struct