Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

在仿真期间查看数据

使用 Scope 模块、Record 模块或仿真数据检查器在仿真期间查看数据

Scope 模块和波形查看器为可视化随着时间而改变的仿真数据提供了一种便捷方法。如果您正在为模型建立原型,则可以将信号连接到 Scope 模块、仿真该模型,然后在 Scope 窗口中查看结果。使用结果来验证您的设计。如果您需要调试模型,可以使用 Scope 中类似于示波器的工具(如触发器和游标测量)来定位问题。要了解详细信息,请参阅Prototype and Debug Models with Scopes

模块

Scope显示仿真过程中生成的信号
Floating Scope and Scope Viewer显示仿真过程中生成的信号,无信号线
Record, XY GraphLog data to the workspace, to a file, or both (自 R2021a 起)

对象

TimeScopeConfiguration控制 Scope 模块的外观和行为

工具

仿真数据检查器检查并比较数据和仿真结果,以验证和迭代模型设计

函数

Simulink.sdi.addTriggerAdd trigger to signal to control display updates in the Simulation Data Inspector (自 R2020b 起)
Simulink.sdi.getTriggerGet signal and trigger options for trigger configured in the Simulation Data Inspector (自 R2020b 起)
Simulink.sdi.removeTriggerRemove trigger from signal in the Simulation Data Inspector (自 R2020b 起)
Simulink.sdi.setRecordDataSpecify record mode for logging (自 R2021a 起)
Simulink.sdi.getRecordDataCheck record mode for logging (自 R2021a 起)

主题