Simulink callbacks when modifying model

2 ビュー (過去 30 日間)
dzid_
dzid_ 2015 年 4 月 30 日
編集済み: zhichuan wang 2018 年 7 月 12 日
Is there any callback available when user make change to the model? I need to know if there was change made within subsystem. Equivalent to DeleteChildFcn, but for any modification.
I know there are callbacks available in each blocks, but it requires all existing blocks ( and new blocks copied to model ) to have callback functions defined.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2015 年 4 月 30 日
Open your model, File -> Model Properties -> Callbacks,
Any callback function that you can use? Maybe PreSaveFcn or CloseFcn to detect if the model is changed? get_param(Model,'Dirty')?
  2 件のコメント
dzid_
dzid_ 2015 年 5 月 1 日
This won't tell me which subsystem has been modified. I need something like CreateChildFcn or MoveChildFcn. They are not available but I presume this is what Undo function utilize.
zhichuan wang
zhichuan wang 2018 年 7 月 12 日
編集済み: zhichuan wang 2018 年 7 月 12 日
This kind of callbacks will be useful to dectect changes in subsystem. And we really need this similar function. Does anyone have sovle this isuue?

サインインしてコメントする。

カテゴリ

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