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
Explains how to combine entry, during, and exit actions in a state
Describes how to detect changes in Stateflow data values at each time step.
Bind a function-call output event to the activity of a state.
Learn how to use duration to simplify Stateflow charts with rapid state switching.
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.
Determine if a state is active during chart execution through the
The following example shows how to call extrinsic functions in a Stateflow chart.
Tells you how you can call MATLAB functions and access MATLAB workspace variables, using the
ml namespace operator or
Describes the C functions that you can call directly in state and transition labels
Set the behavior of states when a function-call input event reenables a chart.