Control the execution of your Stateflow® chart by specifying when transitions between states occur and when actions are executed. Synchronize state execution by broadcasting events. Detect changes in data values and check which states are active during chart execution.
|Chart||Implement control logic with finite state machine|
|hasChanged||Detect change in data since last time step|
|hasChangedFrom||Detect change in data from specified value|
|hasChangedTo||Detect change in data to specified value|
|after||Control chart execution with the after operator|
|at||Control chart execution with the at operator|
|before||Control chart execution with the before operator|
|count||Control chart execution with the count operator|
|duration||Control chart execution with the duration operator|
|elapsed||Control chart execution with the elapsed operator|
|every||Control chart execution with the every operator|
|temporalCount||Control chart execution with the temporalCount operator|
Specify actions to execute when states are active.
Add triggers, conditions, and actions to transitions.
exit actions in a state.
Bind a function-call output event to the activity of a state.
Perform mathematical computations in Stateflow charts.
Special symbols available for state and transition actions.
Access MATLAB® functions that are not supported for code generation.
Call built-in MATLAB functions by using the
Access C functions in state and transition labels.
Determine if a state is active during chart execution.
Define chart behavior when data changes value.
Use event-based and absolute-time temporal logic operators.
Trigger chart actions by changes in data values and state activity.
Simplify debouncing logic in charts that have transient signals.
Count occurrences of explicit and implicit events.