How can I associate a callback with the link status of a block in Simulink?
1 次查看(过去 30 天)
显示 更早的评论
I have created some library blocks and I would like to issue a warning if the link to those blocks is ever broken. However, there does not appear to be a way to execute a callback based on the link status of a block.
采纳的回答
MathWorks Support Team
2009-6-27
The ability to create a callback for the link status of a block is not available in Simulink.
To work around the issue, you can evaluate the link status of all the model's blocks in a model callback, such as the Model Initialization function.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!