Filter löschen
Filter löschen

Why my Windows Standalone Application doesn't work out as its original file?

1 Ansicht (letzte 30 Tage)
I've created an executable file from a .m file using the Deployment Tool, but the generated file doesn't work properly. It doesn't do the same thing as the .m file running directly from Matlab. I just want it to open a Simulink file (.mdl or .slx). Here follows the code:
global ModelName
[filename, pathname] = uigetfile({'*.slx;*.mdl', 'Modelo (*.mdl, *.slx)'});
[pathstr, name, ext] = fileparts(filename);
modelo = strcat(pathname,filename);
ModelName = name;
Why this happens? Does anybody know what I can do?

Akzeptierte Antwort

Harsheel am 20 Sep. 2013
open_system is an unsupported function which cannot be compiled. A list of supported/unsupported functions with various toolboxes can be found here:
open_system is listed here:
  3 Kommentare
Vinicius am 24 Sep. 2013
Actually, I wanted a GUI standalone that communicates with Simulink models. Is it possible with the Simulink Coder?! From what I've read, the Simulink Coder generates code from a Simulink model or Matlab functions. Does the Simulink Coder support a GUI code? My GUI purpose is to open a Simulink model and get data from it through listeners. Could you help me with that?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 18 Sep. 2013
  3 Kommentare
Image Analyst
Image Analyst am 18 Sep. 2013
Bearbeitet: Image Analyst am 18 Sep. 2013
So it launches, it just doesn't do what you expect. Well I don't have Simulink (which I just added to the product list tag) so I can't help further.

Melden Sie sich an, um zu kommentieren.


Mehr zu Simulink Coder 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