Address Model Check Results
After you run the Model Advisor checks to find warnings or failures in your model, you can use the Model Advisor to fix check warnings or failures manually or by using the Model Advisor.
Fix a Model Advisor Check Warning or Failure
The Model Advisor check results identify model elements that are being flagged by the Model Advisor check. You can either manually fix the issues or use the Model Advisor to automatically apply a fix.
For more information on why a specific check does not pass, see the documentation for that check.
In the Model Advisor results, review the results of the analysis.
Fix the warning of failure by using one of these methods:
To manually fix an issue, use the hyperlinks from the Result Details > Failing Element to open model elements that are being flagged by the Model Advisor check. You can also apply batch changes to model parameters from the command line.
To use the Model Advisor to automatically fix an issue, from the toolstrip, click Fix. The Action Report box displays a table of changes.
To verify that the check passes, rerun the check.
Note
After you finish addressing all warnings or failures, it is important that you rerun all checks to verify that there are no additional issues.
Adding Justifications in Model Advisor
The Model Advisor ensures your model adheres to specific standards and guidelines. However, there may be cases where certain warnings or issues are acceptable for your specific model. To document these exceptions, you can add justifications directly in the Model Advisor. To add justifications:
Access Result Details:
Navigate to the Model Advisor and run the desired checks on your model.
Once the check is complete, go to the Result Details section.
Click on the specific violation you want to justify in the Result Details.
In the Result Inspector, locate the Justifications dialog.
Enter your justification description explaining why this violation is acceptable or can be ignored.
Click Apply to save your justification.
If multiple violations require the same justification, hold the
Ctrl
key while selecting the violations, then add your justification description.
Note
Adding justifications after using the viewReport
(Simulink Check) command to view Model Advisor run
results is not recommended, as it may result in errors.
Loading and Unloading Justifications
Loading a justifications file lets you easily apply previously documented justifications to your Model Advisor checks. This means you can quickly and effortlessly reuse justifications in your current setup without needing to add them all over again. To load a justifications file:
Navigate to Model Advisor and click the Open button.
From the drop-down menu, under Manage Justifications, select Load Justifications File.
Note
If there is a pre-existing justification file, ensure that you unload that justification file and then load the desired justification file.
Select the desired justifications file from the File Explorer and the Loading Justifications File dialog appears.
Click the Yes button to load the justifications in your current setup.
Unloading a justifications file in Model Advisor removes the applied justifications from the current session. This can be useful when you need to reset the justifications to evaluate the model without any pre-existing justifications or when you wish to load a different set of justifications for a new analysis. To unload a justifications file:
Navigate to Model Advisor and click the Open button.
From the drop-down menu, under Manage Justifications, select Unload Justifications File.