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!

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 8 de Feb. de 2012

0 votos

1 comentario

pablovl
pablovl el 8 de Feb. de 2012
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 !

Iniciar sesión para comentar.

Categorías

Más información sobre Fuzzy Logic in Simulink en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by