Simulink and compiler

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 ExchangeFuzzy Logic in Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by