Why are the Model Advisor checks for library greyed out?

14 次查看(过去 30 天)
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?

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Check Model Compliance 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by