Main Content
Operating Points in Stateflow
Save the state of your chart at a certain time in your
simulation
Save an operating point to capture the state of a Simulink® model during simulation. If your model contains a Stateflow® chart, the operating point includes information about active states, output and local data, and persistent variables. Use an operating point to specify the initial state for a simulation and to test the response of a Stateflow chart to different settings.
Objects
Stateflow.op.BlockOperatingPoint | Operating point information for Stateflow chart |
Stateflow.op.OperatingPointContainer | Operating point information for state, box, or function |
Stateflow.op.OperatingPointData | Operating point information for chart data |
Object Functions
setActive | Set state as active |
isActive | Determine if state is active |
highlightActiveStates | Highlight active states |
removeHighlighting | Remove highlighting of active states |
getPrevActiveChild | Get previously active substate |
setPrevActiveChild | Set previously active substate |
clone | Copy operating point for Stateflow chart |
open | Display object in editing environment |
Topics
- Save and Restore Operating Points for Stateflow Charts
Capture, modify, and load the simulation state of your chart.
- Use Operating Points to Specify Initial State of Simulation
Get the results of a continuous simulation without starting from time t = 0.
- Test Difficult-to-Reproduce Chart Configurations
Test the response of a transmission system to a sudden change of gear.