Stateflow 中的工作点
保存图在仿真中特定时间的状态
保存一个工作点,以捕获 Simulink® 模型在仿真期间的状态。如果您的模型包含 Stateflow® 图,则工作点包括有关激活状态、输出和局部数据以及持久变量的信息。使用工作点来指定仿真的初始状态,并测试 Stateflow 图对不同设置的响应。
对象
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 |
对象函数
setActive | Set state as active |
isActive | 确定状态是否处于激活状态 |
highlightActiveStates | 突出显示激活状态 |
removeHighlighting | 取消激活状态的突出显示 |
getPrevActiveChild | Get previously active substate |
setPrevActiveChild | Set previously active substate |
clone | Copy operating point for Stateflow chart |
open | Display object in editing environment |
主题
- 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.