Is there version compatibility for the Model Advisor Configuration?

I get the following error message when trying to load a MATLAB R2020a Model Advisor Configuration JSON file in MATLAB R2020b:
Unable to load check "mathworks.jmaab.jc_0627". The check information specified in configuration file might be different than information needed for this release of the check. For example, if the number of check input parameters has changed from a previous release when you open the configuration file, the check does not load.
I confirmed that the check "jc_0627" exists in both R2020a and R2020b.
To produce this issue, I selected only "Check usage of Discrete-Time Integrator block (jc_0627)" in Model Advisor and saved it as a JSON file through the Model Advisor Configuration Editor in MATLAB R2020a. Then I loaded the saved JSON in R2020b through Model Advisor Configuration Editor. However, when I tested the above same workflow in R2020b to R2021a, there is no compatibility issue. Why is there a discrepancy? 

 Accepted Answer

If you open Model Advisor Configuration Editor and scroll to the check "jc_0627", you may find a few input parameters mentioned on the check. These may be changed between releases sometimes depending on new Simulink features, as is the case with R2020a and R2020b. 
Please note that the ability to automatically bulk update or delete the
 configuration JSON files is available in MATLAB R2022b and newer. A "Validate checks" window with the message "Configuration has some validation issues..." will appear when opening configuration JSON files containing incompatible checks. To fix the issues automatically, click "Yes". Model Advisor alters the fixable checks and deletes the nonfixable checks from the configuration file and provides a Validation Summary window to display the list of updated and deleted checks.

More Answers (0)

Categories

Products

Release

R2023b

Community Treasure Hunt

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

Start Hunting!