How to run upgrade advisor programmatically?

2 ビュー (過去 30 日間)
Maria
Maria 2016 年 1 月 5 日
編集済み: Jed Frey 2017 年 9 月 19 日
I used slupdate before, but it will be removed in the future releases. It is suggested to use Upgrade Advisor. I want to avoid using the GUI, which appears in by calling upgradeadvisor or Analysis > Model Advisor > Upgrade Advisor, but to call the option "Run Selected Checks" and to define the checks programmatically.

回答 (1 件)

Sudhanshu Bhatt
Sudhanshu Bhatt 2016 年 1 月 7 日
編集済み: Sudhanshu Bhatt 2016 年 1 月 7 日
Hi Maria,
I understand that you want to run Model checks programatically.
If you have a license for Simulink Verification and Validation, you can create MATLAB scripts and functions that run the Model Advisor programmatically.
For example, you can create a function to check whether your model passes a specified set of the Model Advisor checks every time that you open the model and start a simulation. If you have Simulink Coder, the function can generate code from the model.
You can use the ModelAdvisor.run method to run Model Advisor Checks on Systems using Check ID.
More information on this can be found in the documentation links below:
Hope this helps.
Thanks
Sudhanshu Bhatt
  1 件のコメント
Jed Frey
Jed Frey 2017 年 9 月 19 日
編集済み: Jed Frey 2017 年 9 月 19 日
That's the Model Advisor. At the bottom it calls out what other advisors can be accessed through the Model Advisor window but not how to access them programmatically.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeModel Upgrades についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by