How to detect change when a block parameter is modified?

I would like to be able to constrain Simulink block parameters (any parameters displayed by get(gcbh)) to only allowable values so that when wrong values are entered, a warning will be generated. Is there a callback function that is invoked when someone changes a block parameter (such as OverrideUsingVariant)?

回答 (1 件)

Shivaputra Narke
Shivaputra Narke 2015 年 7 月 18 日

0 投票

not sure, but check if you can use event listeners.

カテゴリ

ヘルプ センター および File ExchangeEvent Functions についてさらに検索

製品

質問済み:

2015 年 7 月 17 日

回答済み:

2015 年 7 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by