Hi.
I wanted to know if it is possible to make an .exe file based on a simulink program that I have done.
I am trying to do that, and I have a GUI for a function based on simulink that works perfectly on Matlab environment, but when I compile it, it throw me the next error:
Undefined function or method 'sim' (which simulates a .mdl simulink file) for arguments ....
Even if I iclude the entire simulink toolbox or the sim function only, the error persists, so I reached the conclusion that simulink and deply tool are not compatible. Is this true??
Thanks!

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 2월 8일

0 개 추천

댓글 수: 1

pablovl
pablovl 2012년 2월 8일
Ok, thnaks so much for your answer, this link showed me the right way to do it.
But I still have a problem.
My standalone application must run a GUI that uses a simulink model. I can make this work in a PC with Matlab installed, but I wanted to run it in computers that don't have it installed.
I know that the way to do that is using the Host-Based Shared Libraries, but my problem (I think is a lack of dll knowledge) is that I don´t know how to use the dll to make the model works, I mean, when I read the rtwdemo_shrlib_app.c file, I don't know how can I know that, for example, the rtwdemo_shrlib_U means external input? How can I know the meaning of the symbols in my dll??
Thanks !

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

추가 답변 (1개)

카테고리

도움말 센터 및 File Exchange에서 Fuzzy Logic in Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by