sltest.harness.SimulationInput 类
命名空间: sltest.harness
为基于 MATLAB 的 Simulink 测试创建测试框架仿真输入
描述
使用 sltest.harness.SimulationInput 类的对象来指定要应用于测试框架模型的输入和更改,并使用这些更改运行仿真。这些对象是 Simulink.SimulationInput 对象的特定类型,专用于测试框架模型。SimulationInput 对象可以包含模型输入、初始状态、模型参数、模块参数、外部输入和变量.仿真结束后,框架恢复到仿真前的状态。sltest.harness.SimulationInput 对象用于与基于 MATLAB® 的 Simulink® 测试配合使用。sltest.harness.SimulationInput 是 Simulink.SimulationInput 的子类。
sltest.harness.SimulationInput 类是 handle 类。
创建对象
描述
in = sltest.harness.SimulationInput( 创建并返回一个 owner,name)SimulationInput 对象,并将 HarnessOwner 属性设置为 owner,将 HarnessName 属性为 name。
或者,使用 sltest.TestCase 的 createSimulationInput 方法创建 sltest.harness.SimulationInput 对象。
属性
方法
示例
版本历史记录
在 R2020b 中推出