模型、模块和端口回调
执行建模事件(如打开模型)的代码
类
Simulink.Annotation | 创建并指定文本注释、图像注释和区域注释的属性 |
示例和操作指南
- 模型回调
指定在模型的特定操作时间点(例如模型加载后或保存模型时)执行的 MATLAB® 代码。
- 模块回调
设置在加载、打开或编辑模块时执行的模块回调。
- Port Callbacks
Set callbacks on input and output ports that execute every time the connectivity of these ports changes.
- View and Trace Callbacks in Models
View and trace all the callbacks executed in a model.
概念
- 针对自定义模型行为的回调
如何使用回调自定义模型。