Betriebspunkte in Stateflow
Speichern Sie einen Betriebspunkt, um den Zustand eines Simulink®-Modells während der Simulation zu erfassen. Falls Ihr Modell ein Stateflow®-Diagramm enthält, enthält der Betriebspunkt Informationen über aktive Zustände, Ausgangs- und lokale Daten sowie persistente Variablen. Verwenden Sie einen Betriebspunkt, um den Anfangszustand für eine Simulation festzulegen und die Reaktion eines Stateflow-Diagramms auf verschiedene Einstellungen zu testen.
Objekte
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 |
Objekt-Funktionen
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 |
Themen
- 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.
- Test Chart with Fault Detection and Redundant Logic
Check the response of an aircraft elevator system to an actuator failure.