Syntax for States and Transitions

Chart elements to express actions and conditions


Chart Implement control logic with finite state machine

Examples and How To

Execution of Actions in States and Transitions

The following chart shows how different constructs interact during simulation:

Combine State Actions to Eliminate Redundant Code

Explains how to combine entry, during, and exit actions in a state

Broadcast Events to Synchronize States

Describes how to use directed local event broadcasts

Control Chart Execution Using Temporal Logic

Learn how to use temporal logic operators

Control Chart Execution Using Implicit Events

Describes events that a Stateflow® chart triggers implicitly for actions such as entry in or exit from a state

Detect Changes in Data Values

Describes how to detect changes in Stateflow data values at each time step

Check State Activity

Describes how to check state activity during chart execution

Control Function-Call Subsystems Using Bind Actions

Describes how to bind a function-call subsystem to a state

Resolve Undefined Symbols in Your Chart

Describes the process of resolving undefined data, event, and graphical function symbols

Count Events

Describes how to count occurrences of explicit and implicit events

Access Built-In MATLAB Functions and Workspace Data

Tells you how you can call MATLAB® functions and access MATLAB workspace variables, using the ml namespace operator or the ml function

Call C Functions in C Charts

Describes the C functions that you can call directly in state and transition labels

Trace Data, Events, and Messages with the Symbols Window

View uses of nongraphical data in the state machine


Supported Operations on Chart Data

Describes the available data operations in state actions and transition conditions

Supported Symbols in Actions

Learn about symbols you can use in actions

Modeling Rules That Stateflow Detects During Edit Time

Discover modeling errors as you design in the Stateflow editor.

Rules for Using Temporal Logic Operators

These rules apply to the use of temporal logic operators:

Absolute-Time Temporal Logic in Conditionally Executed Subsystems

You can use absolute-time temporal logic in a chart that resides in a conditionally executed subsystem.

Best Practices for Absolute-Time Temporal Logic

If you use the at operator with absolute-time temporal logic, an error message appears when you try to simulate your model.

How Change Detection Works

A chart detects changes in chart data by evaluating values at time step boundaries.

Trace Data, Events, and Messages with the Symbols Window

View uses of nongraphical data in the state machine

Was this topic helpful?