Control the execution of your Stateflow® chart by specifying when the states transition and when actions are executed. You can synchronize state execution by using broadcast events and check which states are active during chart execution. To define actions or conditions, use C or MATLAB® as the action language.
|Chart||Implement control logic with finite state machine|
Describes the available data operations in state actions and transition conditions
Learn about symbols you can use in actions
Discover modeling errors as you design in the Stateflow editor.
View uses of nongraphical data in the state machine
Explains how to combine entry, during, and exit actions in a state
Learn the differences in execution between a transition action and a condition action.
The following example shows how to call extrinsic functions in a Stateflow chart.
Describes how to detect changes in Stateflow data values at each time step.
Describes how to use directed local event broadcasts
Learn how to use temporal logic operators.
Describes events that a Stateflow chart triggers implicitly for actions such as entry in or exit from a state
Learn how to use duration to simplify Stateflow charts with rapid state switching.
Describes how to check state activity during chart execution
Describes how to bind a function-call subsystem to a state
Describes the process of resolving undefined data, event, and graphical function symbols
Describes how to count occurrences of explicit and implicit events
Tells you how you can call MATLAB functions and
access MATLAB workspace variables, using the
operator or the
Describes the C functions that you can call directly in state and transition labels