Filter löschen
Filter löschen

How to run Model Advisor in invisible mode?

4 Ansichten (letzte 30 Tage)
Mahibub Shaikh
Mahibub Shaikh am 23 Nov. 2012
Beantwortet: arushi am 22 Aug. 2024 um 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.

Antworten (1)

arushi
arushi am 22 Aug. 2024 um 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.

Kategorien

Mehr zu Run Model Advisor Checks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by