Simulink callbacks when modifying model
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
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 个评论
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 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!