フィルターのクリア

How to run Model Advisor in invisible mode?

4 ビュー (過去 30 日間)
Mahibub Shaikh
Mahibub Shaikh 2012 年 11 月 23 日
回答済み: arushi 2024 年 8 月 22 日 10:31
Hello Everyone,
I need to run model advisor on large number of models one by one. I can open each simulink model in invisible mode by using load_system(). After that using Simulink.ModelAdvisor.getModelAdvisor(MdlName) and so on.. I can run model advisor using this. But while running checks it opens up progress bar indicating model advisor being run and it gets focused for each model. Is it possible to run these model advisor checks in background/invisible mode.
Thanks for your replies.

回答 (1 件)

arushi
arushi 2024 年 8 月 22 日 10:31
Hi Mahibub,
Running Model Advisor checks on multiple Simulink models without the progress bar stealing focus can be a bit challenging, as MATLAB's Model Advisor is designed to provide feedback via the GUI. However, you can attempt to minimize the disruption by using a few strategies, though completely hiding all GUI elements might not be possible directly through built-in functions.
Strategies to Run Model Advisor in Background
  1. Suppress Output and Warnings: Ensure that any output or warnings are suppressed to reduce the focus shift caused by the Model Advisor.
  2. Batch Processing: Use a script to automate the process and reduce manual intervention. This won't hide the progress bar but can streamline the process.
  3. Use MATLAB's Command Window: Run the Model Advisor checks from the command line without opening the Simulink model in the GUI.
Hope this helps.

カテゴリ

Help Center および File ExchangeRun Model Advisor Checks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by