Scenario Parameter Section
Use the options in the Scenario Parameter section to control the active scenario with a variable in the base workspace, model workspace, or a data dictionary.
Enable Control active scenario from workspace. The previously active scenario is deactivated and no active scenario is shown in the Scenario List. When you control the active scenario using a workspace variable, the Test Sequence Editor does not know which scenario is active until you click Run.
If desired, edit
Active_Scenario_Indexto change the variable name.Create a variable with the same name in the base workspace, model workspace, or a data dictionary. For example, in the base workspace, create a variable named
Active_Scenario_Index.Set the value of the variable to the index of the scenario to activate. For example, in the base workspace, use
Active_Scenario_Index = Simulink.Parameter(2)to activate the second scenario.Click Run in the Test Sequence Editor to run the scenario.