Clear Filters
Clear Filters

Warning: Block diagram 'XYZ' contains disabled library links.

2 views (last 30 days)
After deleting a model from library, I am trying to save that library, but I am coming accross a warning message as follows:
Warning: Block diagram 'XYZ' contains disabled library links. Use Model Advisor to find the disabled links in non-library models. The diagram has been saved but may not contain what you intended.
I can see that model advisor is able to help to resolve the Disabled library links but how can it be used to identify disabled links in non-library models.
Please suggest on this.
Regards, Bhavnish.

Answers (1)

arushi
arushi on 26 Aug 2024
Hi Bhavnish,
When you receive a warning about disabled library links in a Simulink model or library, it indicates that some blocks in your model are linked to a library block that has been disabled, meaning that these blocks are no longer synchronized with the library. This can lead to unexpected behavior if the library block is updated or removed.
To identify and resolve disabled library links in non-library models using the Model Advisor, follow these steps:
Open Your Model:
  • First, ensure that your model (not the library) is open in Simulink.
Launch Model Advisor:
  • In the Simulink Editor, go to the Analysis menu and select Model Advisor. Alternatively, you can use the command line by typing modeladvisor('your_model_name') in the MATLAB Command Window, replacing 'your_model_name' with the name of your model.
Select the Appropriate Checks:
  • In the Model Advisor window, navigate to the By Task tab.
  • Look for tasks related to Modeling Standards for MAAB or Simulink Verification and Validation.
  • Specifically, find checks related to library links, such as "Check for disabled library links."
Run the Check:
  • Select the check for disabled library links and click Run Selected Checks.
  • The Model Advisor will analyze your model and report any disabled library links it finds.
Review the Results:
  • Once the check is complete, review the results in the Model Advisor. It will list any blocks with disabled library links and provide recommendations for resolving them.
Resolve Disabled Links:
  • To resolve disabled links, you can:
  • Restore the Link: Update the block to re-enable the link to the library.
  • Break the Link: Convert the block to a standalone block by breaking the link if you no longer need the library connection.
  • Update Library Path: If the library has been moved, update the path to the library block.
Hope this helps.

Community Treasure Hunt

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

Start Hunting!