Standalone executable GUI calling Simulink

3 ビュー (過去 30 日間)
ANUBHAV SINHA
ANUBHAV SINHA 2011 年 9 月 28 日
コメント済み: Walter Roberson 2021 年 12 月 31 日
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 件のコメント
mohammadreza j
mohammadreza j 2021 年 12 月 31 日
so what i suppose to use, do you know?
Walter Roberson
Walter Roberson 2021 年 12 月 31 日
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.

サインインしてコメントする。

回答 (4 件)

Chirag Gupta
Chirag Gupta 2011 年 9 月 28 日
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 2011 年 9 月 28 日
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 件のコメント
Chirag Gupta
Chirag Gupta 2011 年 9 月 28 日
Yes! MCR can be packaged with deploytool
ANUBHAV SINHA
ANUBHAV SINHA 2011 年 9 月 29 日
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)!!

サインインしてコメントする。


Palak
Palak 2011 年 11 月 20 日
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 件のコメント
mohammadreza j
mohammadreza j 2021 年 12 月 30 日
hello
i am looking for the solution, can you help me please?
thanks

サインインしてコメントする。


Darin McCoy
Darin McCoy 2014 年 9 月 26 日
  4 件のコメント
Jan
Jan 2018 年 7 月 8 日
Kaixiang Wang wrote:
What does he even mean??? Useless comment.
mohammadreza j
mohammadreza j 2021 年 12 月 30 日
hello
whats the solution?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by