Opening a simulink model through same instance : App designer

2 vues (au cours des 30 derniers jours)
Amit Patankar
Amit Patankar le 28 Jan 2021
Commenté : Amit Patankar le 3 Fév 2021
I am working in MATLAB app designer. I have one instance of MATLAB GUI already open.. I have used a pushButton in app designer, which opens a simulink model when pushed. But the model is opened in a different GUI Window of MATLAB. I want the simulink model to open through same instance, which is already open.
What changes should I make in the "sim" command ?

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 28 Jan 2021
When you open a Simulink model, the model is always opened in the built-in, Mathworks' Simulink GUI. I don't think you can open the Simulink model in a GUI that is contained in your own APP.
  13 commentaires
Fangjun Jiang
Fangjun Jiang le 3 Fév 2021
uigetfile() is for selecting a file. It will not open the file.
FileName=uigetfile();
open_system(FileName);
Amit Patankar
Amit Patankar le 3 Fév 2021
Thanks @Fangjun Jiang This resolves my question. Thank you for all you help..

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Using MATLAB Projects in Simulink dans Help Center et File Exchange

Produits


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by