MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
sldvmakeharness 的默认选项
sldvmakeharness
harnessopts = sldvharnessopts
harnessopts = sldvharnessopts 生成运行 sldvmakeharness 的默认配置。
harnessopts
示例
全部折叠
使用默认选项为 sldvdemo_cruise_control 模型创建测试框架。
sldvdemo_cruise_control
打开 sldvdemo_cruise_control 示例模型。
openExample('sldv/CruiseControlTestGenerationExample',... 'supportingFile', 'sldvdemo_cruise_control');
使用默认选项,为 sldvdemo_cruise_control 模型创建测试框架。
harnessOpts = sldvharnessopts; [harnessfile] = sldvmakeharness('sldvdemo_cruise_control',... '', harnessOpts);
一种结构体,其字段指定创建 Simulink® Design Verifier™ 框架模型时 sldvmakeharness 的默认选项。
harnessopts 结构体可以有这些字段。如果您未指定值,则配置将使用默认值。
harnessFilePath
指定创建框架模型的文件路径。如果指定了无效路径,sldvmakeharness 不会保存框架模型,但会创建并打开框架模型。如果不指定此选项,sldvmakeharness 将生成一个新的框架模型并将其保存在 MATLAB® 当前文件夹中。
默认值:''
''
modelRefHarness
生成包含 Model 模块中的模型的测试框架模型。当为 false 时,测试框架模型包含模型的副本。
false
默认值:true
true
usedSignalsOnly
当 harnessSource 参数设置为 Signal Editor 时,框架模型中的 Signal Editor 模块除了模型中的输入信号外,还包含未使用的总线信号。
harnessSource
Signal Editor
当 true 时,框架模型中的 Signal Builder 模块仅具有针对模型中的输入信号的信号。模型必须与 Simulink Design Verifier 软件兼容才能检测这些输入信号。
默认值:false
当设置为 Signal Editor 时,Simulink Design Verifier 会生成以 Signal Editor 模块作为输入模块的框架模型。
默认值:Signal Editor
全部展开
如果使用 Signal Builder 作为 harnessSource 选项的值,则 sldvmakeharness 和 sldvmergeharness 会发出警告。
sldvmergeharness
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处