Standalone executable GUI calling Simulink

Hi, I am attempting to make a standalone executable GUI which calls a Simulink model. I found an appropriate method listed on:
Using the above link, I am able to create the exe file but am unable to run it without MATLAB. Do I need to do any more things so as to run the executable on a system without MATLAB?
Thanks for your time.
Anubhav

7 comentarios

jany basha
jany basha el 24 de En. de 2014
hey. i am also having same problem with creating 'Standalone executable GUI calling Simulink' did you solved it ,can you please reply me how to create it in step by step comments please
thank you
mohammadreza j
mohammadreza j el 30 de Dic. de 2021
hello
whats the solution?
Walter Roberson
Walter Roberson el 30 de Dic. de 2021
You would need the relatively new Simulink Compiler product (R2020a and newer)
mohammadreza j
mohammadreza j el 30 de Dic. de 2021
i have R2020a but i still have the problem calling simulink model from standalone gui
i use sim() to call simulink model, it works fine in matlab but it doesnt work as .exe. what should i do?
Walter Roberson
Walter Roberson el 30 de Dic. de 2021
You cannot call sim() from an executable if I understand correctly...though I have not read the documents for Simulink Compiler.
mohammadreza j
mohammadreza j el 31 de Dic. de 2021
so what i suppose to use, do you know?
Walter Roberson
Walter Roberson el 31 de Dic. de 2021
Checking further, you can call sim() from within MATLAB -- but you need to use the product "Simulink Compiler",
The post at https://www.mathworks.com/matlabcentral/answers/1605740-matlab-compiler-matlabruntimeforpython-dot-indexing-is-not-supported-for-variables-of-this-type hints that you would get a Simulink.standalone_sim error if you tried to use MATLAB Compiler.

Iniciar sesión para comentar.

Respuestas (4)

Chirag Gupta
Chirag Gupta el 28 de Sept. de 2011

0 votos

You would need to install the MCR on machines without MATLAB (MCR: Matlab Runtime)
The MCR is avalable with the MATLAB Compiler product.
ANUBHAV SINHA
ANUBHAV SINHA el 28 de Sept. de 2011

0 votos

Thanks for your answer. So can I package the MCR by using deploytool just as I package it for the m-file based GUIs?
Anubhav

2 comentarios

Chirag Gupta
Chirag Gupta el 28 de Sept. de 2011
Yes! MCR can be packaged with deploytool
ANUBHAV SINHA
ANUBHAV SINHA el 29 de Sept. de 2011
I just now tried doing it through the deploytool but it is not working. Please note that in the link I posted above, the GUI is calling a calling a Simulink exe (and not an mfile). http://www.mathworks.com/support/solutions/en/data/1-27DUK5/
Finally, when I use deploytool--->set the GUI mfile as the main function---> but all ctf, exe,mdl etc files in the Other Files tab---> put all C files in 'C Files tab'---> then on Build, the generated exe doesnt work even while testing( and ofcourse doesnt work after packaging too)!!

Iniciar sesión para comentar.

Palak
Palak el 20 de Nov. de 2011

0 votos

hi, can you write some steps for making .exe file of simulink model? i use sim command in .m file to simulate simulink model and then make .exe file.but expected result is not coming. so,please write one example or some steps for making standalone file from simulink model.. i am using matlab r2010a-32 bit,windows-7 64 bit
thank you in advance.

1 comentario

mohammadreza j
mohammadreza j el 30 de Dic. de 2021
hello
i am looking for the solution, can you help me please?
thanks

Iniciar sesión para comentar.

Darin McCoy
Darin McCoy el 26 de Sept. de 2014

0 votos

4 comentarios

Darin McCoy
Darin McCoy el 26 de Sept. de 2014
....now the link doesn't work??? that's pretty fishy..
Andreas Goser
Andreas Goser el 9 de Mzo. de 2015
Please use this bug report instead
Jan
Jan el 8 de Jul. de 2018
Kaixiang Wang wrote:
What does he even mean??? Useless comment.
mohammadreza j
mohammadreza j el 30 de Dic. de 2021
hello
whats the solution?

Iniciar sesión para comentar.

Categorías

Más información sobre Using MATLAB Projects in Simulink en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Sept. de 2011

Comentada:

el 31 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by