Determine if state is active
Modify Operating Point Information for State Activity
For more information about this model, see Detect Faults in Aircraft Elevator Control System.
Set the model to save the final operating point. Open the Configuration Parameters dialog box and, in the Data Import/Export pane:
Select Final states and enter a name for the operating point. For this example, use
Select Save final operating point.
Set the stop time for this simulation segment. In the Simulation tab, set Stop Time to
Run the simulation.
Stateflow.op.BlockOperatingPointobject that contains the operating point information for the
blockpath = "sf_aircraft/Mode Logic"; op = get(xSteadyState,blockpath)
op = Block: "Mode Logic" (handle) (active) Path: sf_aircraft/Mode Logic Contains: + Actuators "State (OR)" (active) + LI_act "Function" + LO_act "Function" + L_switch "Function" + RI_act "Function" + RO_act "Function" + R_switch "Function" LI_mode "State output data" sf_aircraft_ModeType [1,1] LO_mode "State output data" sf_aircraft_ModeType [1,1] RI_mode "State output data" sf_aircraft_ModeType [1,1] RO_mode "State output data" sf_aircraft_ModeType [1,1]
Stateflow.op.OperatingPointContainerobject that contains the operating point information for the
ans = State: "Actuators" (handle) (active) Path: sf_aircraft/Mode Logic/Actuators Contains: + LI "State (AND)" (active) + LO "State (AND)" (active) + RI "State (AND)" (active) + RO "State (AND)" (active)
Highlight the states that are active in the chart at t = 3.
Change the substate activity in the state
LOto reflect a failure of the left-outer actuator.
Verify that the substate
Isolatedin the state
LOis active in the modified operating point.
ans = logical 1
Remove the highlighting of active states in the Stateflow® Editor.
Introduced in R2009b