Why are the Model Advisor checks for library greyed out?

14 views (last 30 days)
I have composed several Model Advisor checks and verified that they run on normal Simulink models.
When I load the checks on Libraries however, all of the checks are greyed out and when selected to run do not ever actually run. I have refreshed the customizations in the Model Advisor and reloaded the project several times in order to assure that my checks are up to date, and I'm still seeing the same result. Is there another reason that these checks wouldn't be accessible from the model advisor panel for Libraries only?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Sep 2023
Please try resolving the following:
  1. There is no conflict in the "sl_customization" scripts.
  2. The Model Advisor information is not being retained in the "slprj" folder. 
After resolving the above and clearing out old data the Model Advisor should behave as expected
if the Model Advisor checks still remain greyed out, please follow the steps below:
  1. Configure the models to be able to run on Libraries and set the "SupportLibrary" field of the check to true as noted in the help documentation.
  2. Check the scope of your Model Advisor checks. By default, the checks are set to run on the current system. If your library is in a separate system or referenced model, you may need to adjust the scope of the checks to include the library.
  3. Verify that the Model Advisor is configured to include checks from libraries. In the Model Advisor Configuration dialog, make sure that the "Include checks from libraries" option is selected.
  4. Double-check the configuration of your Model Advisor checks. Make sure that the "SupportLibrary" field is set to true.

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!