How to pass Model Advisor check for "Check Model Description" with Check ID jc_0603 in MATLAB R2023b?
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 10 Nov 2023
Réponse apportée : MathWorks Support Team
le 20 Déc 2023
I am using MATLAB R2023b to construct a Simulink model with multiple layers. I am using a consistent description format in the top level and in all of the subsystems in my model as follows:
Name: abc
Purpose: abc
Inputs: abc
Outputs: abc
Calculated abc
Description: abc
However, when I run "Model Advisor" for "Check Model Description" with Check ID jc_0603, the report shows a warning stating "Following layers do not have consistent model description format:".
The following documentation page states that "By default, the "Description Block Type" is set to Annotation and the "Description Tags" parameter is "Input:,Description:,Output:"."
How do I access the "Description Block Type" and "Description Tags" to match the format of my descriptions in my model?
Réponse acceptée
MathWorks Support Team
le 10 Nov 2023
The warning resulting from checks for "Check Model Description" can be resolved by modifying the Description Tags in the "Model Advisor Configuration Editor" to contain the tag names used in your Simulink model. The following steps should help you pass the checks:
1. Use one of these methods to open the "Model Advisor Configuration Editor":
a) Programmatically ― At the MATLAB command line, enter
>> Simulink.ModelAdvisor.openConfigUI
b) From the Simulink editor ― In the Modeling tab, select Model Advisor > Configuration Editor
c) From the Model Advisor ― Select Open > Open Configuration Editor
(Note: before opening the Model Advisor Configuration Editor, verify that the current folder is writable. If the folder is not writable, you see an error message when you start the Model Advisor Configuration Editor.)
2. Find relevant checks by typing in the search bar "Check Model Description"
3. Select each check titled "Check Model Description" and edit Description Tags under Input Parameters with the fields specific to your model (i.e. "Name:,Purpose:,Inputs:,Outputs:,Description:")
4. Select Apply and save the modified configuration file. It is optional to set this file as "default" when prompte.
More information on loading and setting up a custom configuration file can be found in the link below:
5. Update your Simulink environment to include the custom configuration file. At the MATLAB command line, enter
>> Advisor.Manager.refresh_customizations
6. Open "Model Advisor" and run the checks
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Check Model Compliance dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!