Why can't I restore disabled links from a model StopFcn callback?
Mostra commenti meno recenti
I have a model, where I want to disable links before the simulation and to restore the links after the simulation.
The InitFcn callback looks like this: set_param('BreakLinks/LibraryBlock', 'LinkStatus', 'inactive')
It works, the link is disabled. In the same model, the StopFcn callback looks like this: set_param('BreakLinks/LibraryBlock', 'LinkStatus', 'restore')
The link is not restored by the StopFcn. Why not? How can I work around this problem?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Model, Block, and Port Callbacks in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!