Main Content

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.

  1. 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.

  2. If desired, edit Active_Scenario_Index to change the variable name.

  3. 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.

  4. 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.

  5. Click Run in the Test Sequence Editor to run the scenario.