Skip to Main Content Skip to Search
Product Documentation

Overview of Stateflow Objects

Graphical Objects

The following table lists each type of graphical object you can draw in a chart and the toolbar icon to use for drawing the object.

Type of Graphical Object

Toolbar Icon

State

Transition

Not applicable

History junction

Default transition

Connective junction

Truth table function

Graphical function

MATLAB® function

Box

Simulink function

Nongraphical Objects

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.

Data 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.

Event Objects

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.

Target Objects

A target is a program that executes a Stateflow chart or a Simulink model containing a Stateflow machine.

This type of target...Does this...
SimulationExecutes a simulation of your model
Embeddable code generationExecutes the Simulink model on a supported processor environment
CustomPinpoints your application to a specific environment

For more information, see Building Targets.

For More Information on Stateflow Objects

Stateflow Chart Semantics describes the various Stateflow objects in more detail.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS