Main Content

sltest.testsequence.isUsingScenarios

Determine whether Test Sequence block uses scenarios

Since R2020b

Description

example

TF = sltest.testsequence.isUsingScenarios(blockPath) returns whether the Test Sequence block specified by blockPath uses scenarios.

Examples

collapse all

Check whether the Test Sequence block in the sltestRollRefTestExample model uses scenarios. In this case, the block has not been set to use scenarios, so isUsingScenarios returns false.

openExample('sltestRollRefTestExample');

use_scen = sltest.testsequence.isUsingScenarios...
   ('sltestRollRefTestExample/Test Sequence')
use_scen =

  logical

   1
 

Close the model without saving it.

close_system(Model,0)

Input Arguments

collapse all

Path to a Test Sequence block, including the block name, specified as a string or character vector. Instead of the block path, you can use a block handle.

Example: 'FanSpeedTestHarness/Test Sequence'

Version History

Introduced in R2020b