| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
| On this page… |
|---|
The following table gives the name of each graphical object in a Stateflow chart, its appearance when drawn in the Stateflow Editor (Notation), and the toolbar icon to use for drawing the object.
Name | Notation | Toolbar Icon |
|---|---|---|
State |
|
|
Transition |
| Not applicable |
History junction |
|
|
Default transition |
|
|
Connective junction |
|
|
Truth table function |
|
|
Graphical function |
|
|
Embedded MATLAB™ function |
|
|
Box |
|
|
Simulink function |
|
|
You can define data, event, and target objects that do not appear graphically in the Stateflow Editor. However, you can see them in the Model Explorer. See Using the Model Explorer with Stateflow Objects.
A Stateflow chart stores and retrieves data that it uses to control its execution. Stateflow data resides in its own workspace, but you can also access data that resides externally in the Simulink model or application that embeds the Stateflow machine. You must define any internal or external data that you use in the action language of a Stateflow chart. For a full description of data objects, see Defining Data.
An event is a Stateflow object that can trigger a whole Stateflow chart or individual actions in a chart. Because Stateflow charts execute by reacting to events, you specify and program events into your charts to control their execution. You can broadcast events to every object in the scope of the object sending the event, or you can send an event to a specific object. You can define explicit events that you specify directly, or you can define implicit events to take place when certain actions are performed, such as entering a state. For a full description of event objects, see Defining Events.
You build targets to execute the application you program in Stateflow charts and the Simulink model that contains them. A target is a program that executes a Stateflow chart or a Simulink model containing a Stateflow machine. You build a simulation target to execute a simulation of your model. You build an embeddable code generation target to execute the Simulink model on a supported processor environment. You build custom targets to pinpoint your application to a specific environment. For a full description of target objects, see Building Targets.
Stateflow Chart Semantics describes the various Stateflow objects in more detail.
![]() | Stateflow Chart Notation | Rules for Naming Stateflow Objects | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |