I have two separate library files with the same name in different directories. I also have two separate models in these directories, and each contains reference blocks to the library in their directory. I start Simulink and run one model. After that simulation is complete, I attempt to run the second model. However, when I do this, Simulink accesses the wrong library. It appears to think that the reference blocks in my second model are linked to the blocks in the first library. This occurs even though the first library is no longer on the MATLAB path.
MATLAB: Does the Simulink model incorrectly access a library with the same name as the referenced library in Simulink
clearliblinksmdlrefreshrehashrepeatsimulinkunlink
Related Question
- How to save a Simulink model in a package with any referenced libraries
- Distinguish MATLAB Library & Custom Library
- Are the library blocks unable to propagate the changes in Simulink
- Restoring library links
- When working with 2 library models, is there a way to script the location of a library block to move it from one library to the other in a model
- How to include s-functions in a “library model”
- Can the Model Reference block become a linked library block in Simulink
- Toolbox vs. library
Best Answer