How can I force my Simulink model to use the latest version of the library in Simulink 6.3 (R14SP3)?

9 views (last 30 days)
Open a MATLAB session. In that session open the Simulink model which uses a library block. Run the model. Do not close the Simulink model.
Open another MATLAB session. In the second MATLAB session open the library block that is being used in the simulink model. Modify the library block and save it.
Return to the first MATLAB session. Run the Simulink model which is already open. Notice that the modifications made in the library are not reflected in the output of the Simulink model.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 Jan 2010
This enhancement has been incorporated in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
This issue is because, before a model is started, Simulink loads the library blocks into the memory. Now, if the library block on the disk is modified using a different Simulink session, the first session of Simulink still uses the library block that is loaded in it's memory. To reload the library blocks that the model is using, use the FIND_SYSTEM to find all the library blocks that are loaded in the memory and clear them using the BDCLOSE function. The following command demonstrates how this can be done:
bdclose(find_system('type', 'block_diagram','BlockDiagramType','library'))

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!