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
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 件)

カテゴリ

Help Center および File ExchangeModel, Block, and Port Callbacks についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by