在 Simulink 编辑器中调试仿真
调试和分析模型画布中的仿真,设置断点,步进时间步和模块执行
使用 Simulink® 编辑器中提供的调试工具,您可以:
设置断点以在感兴趣的点处暂停仿真。
查看和管理整个模型中的断点。
以一次一个时间步或一次一个模块的方式步进仿真。
为信号添加端口值标签以查看在步进仿真时信号值的变化。
模型画布在模块图的上下文中显示断点和端口值标签,以便您在一个位置分析、调试和修改您的模型。
工具
主题
暂停并步入仿真
- 使用 Simulink 编辑器步进仿真
一次运行一个或多个时间步的仿真,或一次运行一个模块的仿真,查看模块图中的信号值,并配置逐步仿真选项。 - Debug Simulation Using Signal Breakpoints
Set breakpoints to pause simulation at points of interest for debugging and analysis. - How Stepping Through Simulations Works
Learn how the software steps through time steps and how to evaluate trade offs involved in configuring the simulation stepping options. - Debug Simulation of Iterator Subsystem
Explore options for stepping through and debugging simulations of models that contain iterator subsystems.
查看模块图中的信息
- 使用端口值标签查看信号值
在仿真期间查看模块图中的信号值,以了解、分析和调试您的模型。 - 控制和显示执行顺序
确定任务中模块之间的执行顺序。 - 查看采样时间信息
如何以交互方式访问采样时间信息。 - Use Connectors Tool to Visualize Relation Between Blocks
Use Connectors tool to visualize relation between Simulink functions and their function caller blocks, reader and writer blocks or blocks which execute based on events.