How to refresh library blocks programmatically?

9 Ansichten (letzte 30 Tage)
olivier
olivier am 30 Mai 2012
I'd like to run in a script the equivalent of control+K
Thanks

Akzeptierte Antwort

TAB
TAB am 7 Jun. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by