Simulink callbacks when modifying model
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Fangjun Jiang
le 30 Avr 2015
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 commentaires
zhichuan wang
le 12 Juil 2018
Modifié(e) : zhichuan wang
le 12 Juil 2018
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?
Voir également
Catégories
En savoir plus sur Model, Block, and Port Callbacks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!