Clear Filters
Clear Filters

Model Advisor Configuration Editor for Simulink Checks refuses to save the configuration

22 views (last 30 days)
Hello,
I am currently trying to fix a json configuration file for Model Advisor on R2023a version.
When I load the json configuration file, the editor says that "there are sone issues in the selected configuration file. Do you want to Auto-fix?"
For sure, I answer "Yes, please fix it". The Editor does its job and displays a Validation summary with some checks which are updated and some other checks which are deleted.
OK let's go on.
But in the Model Adivor tab, there are still some chekcs which are invalid although they appeared as updated in the "Validation Summary" previous window ! WTF ?
Don't worry, the editor proposes to fix it again, so let's fix it again !
OK now there is no more checks marked as incorrect, I can save my updated configuration file now...
Damned, when I try to save it, the editor says "There are sone issues in the selected configuration file. please validate the configuration before saving".
It would have been fine if the editor could tell me which issues does problem but I guess it is too much for MATLAB.
And unfortunately the "Validate" icon is greyed and I can not trigger the validation. So I can not update my configuration file, what a pity !
Does someone know how to proceed for the upgrade of my configurarion file ?
thank you for your attention.
  2 Comments
Ashutosh Thakur
Ashutosh Thakur on 15 Jul 2024 at 9:44
Edited: Ashutosh Thakur on 15 Jul 2024 at 9:48
Hi Didier,
Can you share the json configuration file you are using with Model Advisor?
Meanwhile can you try executing the following command in MATLAB Command Window and then try to update configuration file:
Advisor.Manager.refresh_customizations();
Thanks
Didier Billard
Didier Billard on 15 Jul 2024 at 14:34
Thank you very much for your response.
Unfortunately I am not authorized to deliver json configuration file as it contains customized checks which are "copy righted"
Nevertheless I succeeded into saving json configuration file using the command you gave and also selecting the first line into Model Advisor Tab (selecting any other line leading to warning message for remaining issues into configuration file).
I was also able to validate the configuration file successfully.
Thank again for your support.

Sign in to comment.

Answers (0)

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!