All,
I'm having a frustrating problem and have lost countless hours of time... I build Simulink models that reference subsystems from libraries. Sometimes these libraries reference other libraries so there is a hierarchy. I frequently have a problem where the simulation of the top calling model does not have the latest library subsystem linked in. I started the practice of calling,
bdclose(find_system('type', 'block_diagram','BlockDiagramType','library'));
before running each simulation. This has helped but work 100% of the time. I still get into situations where I'll make an edit to a library subsystem only to find that when I run the calling Simulink model those edits aren't present.
Can someone please explain how I can force Simulink to recursively traverse the hierarchy of linked library subsystems and force them all to update to the current state of the saved library?
Thank you.