This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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



Not applicable

History junction

Default transition

Connective junction

Truth table function

Graphical function

MATLAB® function


Simulink® function

Nongraphical Objects

You can define data, event, and message objects that do not appear graphically in the Stateflow® Editor. However, you can see them in the Symbols window and the Model Explorer. See Use 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 a Stateflow chart.

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.

Message Objects

Stateflow message objects are queued objects that can carry data. You can send a message from one Stateflow chart to another to communicate between charts. You can also send local messages within a chart. You define the type of message data. You can view the lifeline of a message in the Message Viewer block. For more information, see How Messages Work in Stateflow Charts.

Was this topic helpful?