How to Create an executable file for Simulink model?

조회 수: 7 (최근 30일)
Vivek
Vivek 2014년 1월 15일
편집: fayçal ahmed zaid 2016년 8월 11일
I have a GUI which get 2 inputs from user and provide that to simulink model. Model will add that two input and give an output to GUI via CMex S Fcn. I tried to create a standalone "exe" file fot that. It is created, but when I try to open that my ".exe" is not working because I have used some simulink commands such as 'load_system' and 'set_param'. Is there any replacement for that?
Please provide me some ways to create single ".exe" file for above mentioned.
(the fucvtionality expectation is an example. Matter is to create exe which includes '*.m', '*.mdl', '*.fig' )

채택된 답변

Friedrich
Friedrich 2014년 1월 15일
HI,
check his example
  댓글 수: 2
Vivek
Vivek 2014년 1월 17일
Friedrich, Azzi,
In my model I am using custom storage blocks. So I got error. Then in "Configuration parameters" I checked "Ignore custom storage" and so I can create .exe file. But when I'm using that exe the output values are not changing as expected. I think it took some default values(may be zero) for those constant blocks while creating exe. But those custom storage type constant blocks values are different. Kindly give me some suggestions in this.
fayçal ahmed zaid
fayçal ahmed zaid 2016년 8월 11일
편집: fayçal ahmed zaid 2016년 8월 11일
Hi all,
The link for the exemple is no longer working. Could you provide me another ? I have the same issue ...
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 1월 15일
You can generate a c code for your simulink model, but you will need a simulink coder
  댓글 수: 2
Vivek
Vivek 2014년 1월 17일
Ok.
Dzung
Dzung 2014년 9월 9일
Hi Azzi, I've generated C code from simulink model by the coder, but when I'm compiling it under VC2010, I've got error LNK2019 "unresolved external symbol". I guess that I've missed some lib files but not know which one. Can you show me how to find the appropriate lib files?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by