Effacer les filtres
Effacer les filtres

Is there a way to suppress Simulink from being brought to front of screen?

19 vues (au cours des 30 derniers jours)
HaMo
HaMo le 9 Août 2019
Commenté : HaMo le 9 Août 2019
While I have Simulink models running in the background I would like to work in other programs on the same computer (e.g. Word, web browser or whatever there is to do). The problem is Simulink keep being placed in the front of all other applications, and also to be active for keyboard input etc.
I am running tests with a scripted wrapper that calls the Simulink models, but everytime a new test starts the Simulink model is brought to top and all keyboard input is directed to the Matlab application, not whatever program I happened to be typing in.
The models are loaded with load_system(...), and run with the sim(...) command.
Running Matlab in headless mode might help me. Then I will however not be able to go back and check plots etc when all tests are run. But is this the least bad solutiion? Or is there a way to programatically set a Simulink model to run only in the background?
Edit: Used open_system, not load_system. Using load_system, problem solved

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 9 Août 2019
If you used laod_system(), then the Simulink model is not supposed to be visible. open_system() will load it and make it visible. At the end of your simulation, you can run open_system() again to view it. Run the below commands line by line to see the effect.
load_system('f14');
sim('f14');
open_system('f14')
  1 commentaire
HaMo
HaMo le 9 Août 2019
You are right, I used open_system, not load_system.
Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Tags

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by