帮助中心帮助中心
本页采用了机器翻译。点击此处可查看英文原文。
确定 Test Sequence 模块是否使用场景
自 R2020b 起
TF = sltest.testsequence.isUsingScenarios(blockPath)
示例
TF = sltest.testsequence.isUsingScenarios(blockPath) 返回 blockPath 指定的 Test Sequence 模块是否使用场景。
blockPath
全部折叠
检查 sltestRollRefTestExample 模型中的 Test Sequence 模块是否使用场景。在这种情况下,模块尚未设置为使用场景,因此 isUsingScenarios 返回 false。
sltestRollRefTestExample
isUsingScenarios
false
openExample('sltestRollRefTestExample'); use_scen = sltest.testsequence.isUsingScenarios... ('sltestRollRefTestExample/Test Sequence')
use_scen = logical 1
关闭模型而不保存。
close_system(Model,0)
Test Sequence 模块的路径,包括模块名称,指定为字符串或字符向量。您可以使用模块句柄,而不是模块路径。
示例: 'FanSpeedTestHarness/Test Sequence'
'FanSpeedTestHarness/Test Sequence'
在 R2020b 中推出
sltest.testsequence.useScenario
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office