How to refresh library blocks programmatically?

5 vues (au cours des 30 derniers jours)
olivier
olivier le 30 Mai 2012
I'd like to run in a script the equivalent of control+K
Thanks

Réponse acceptée

TAB
TAB le 7 Juin 2012
AFAIK, there no specific command for Ctrk+K (Referesh model block). But, library block can also be refreshed using update diagram (ctrl+D). Update diagram can be issued using command
>> set_param('YourModel','SimulationCommand','update');
Just for information, in newer version of simulink, library block and model reference block refreshes automatically. See this blog.

Plus de réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by