Methods for Interacting with the Operating Point of a Chart
An operating point is a snapshot of the state of a Simulink® model at a specific time during simulation. For a Stateflow® chart, an operating point includes:
Activity of chart states
Values of chart local data
Values of chart output data
Values of persistent data in MATLAB® functions and Truth Table blocks
For more information, see Using Operating Points in Stateflow.
You can use the following methods to interact with the operating point of a chart. Assume
that ch is a handle to the operating point of your chart, which you obtain
|Type of Object||Method||Description||Example|
All chart objects
For graphical objects, highlights the object in the Stateflow Editor.
For nongraphical objects, highlights the object in the Model Explorer.
For persistent data in MATLAB functions, this method opens the function editor and highlights the persistent data at the exact line in the script.
Verifies that all states in a chart are consistent.
Copies the entire chart operating point to a new variable.
Highlights all active states in the Stateflow Editor.
Returns true (1) if all states pass a consistency check and false (0) otherwise.
Removes all highlighting in the Stateflow Editor.
Returns true (1) if a state is active and false (0) otherwise.
Must be an exclusive leaf state
Sets a state to be active.
This method ensures that no other exclusive states at that level are active.
Must have a history junction and exclusive substates
Returns the previously active substate.
Must be inactive; must have a history junction and exclusive substates
Sets the previously active substate.
The argument must be the name of a substate (in quotes), or the full operating point path to a substate (without quotes).