Main Content
sltest.testsequence.activateScenario
Description
sltest.testsequence.activateScenario(
makes the blockPath
,scenarioName
)scenarioName
scenario in the specified Test Sequence block
active so it runs during simulation. Only one scenario is active at a time. You can use
activateScenario
only if
sltest.testsequence.setScenarioControlSource
is
sltest.testsequence.ScenarioControlSource.Block, which sets the active scenario control to a
Test Sequence block instead of a variable in the workspace. Use
sltest.testsequence.getScenarioControlSource
to view the current
scenario control source setting and
sltest.testsequence.setScenarioControlSource
to change it.
Examples
Input Arguments
Version History
Introduced in R2020b