Implementing a Simulink model in an executable file

1 view (last 30 days)
Hello,
I'm building a GUI which uses Simulink to perform some calculations. At this point everything is working in the Matlab evironment, and I want to create a executable.
However, at http://mathworks.com/matlabcentral/answers/45035-forcing-deploytool-to-include-toolbox#answer_55163 Friedrich told me that SimuLink models are not directly implementable in a GUI. The suggestion made was to generate a .exe from my SimuLink model, and load this in the MatLab environment. However, I'm wondering how to do this without loosing functionality. I just tried to use the embedded coder to generate the .exe SimuLink model, but it already gave an error, saying that 'variable timestep was not possible'. This is not a big issue, but i'm afraid more functionality will be lost.
In my GUI, among others I change several conditions of the SimuLink model, use a parameter estimation, and change StartTime and StopTime based on input. I'm afraid that this interactivity is not possible anymore when I transform my SimuLink model to .exe
Are my worries relevant, or is the code generated in such a way, that all SimuLink functionality is maintained?
Thanks in advance.

Accepted Answer

Kaustubha Govind
Kaustubha Govind on 1 Aug 2012
It is currently not possible to generate standalone code for Simulink models using a variable-step solver, because this solver uses technology that is part of the Simulink Engine, so any code thus generated will require Simulink to be installed on the target machine. Also, AFAIK, Simulink Design Optimization (which I assume what you're using for parameter estimation) is currently not supported for code generation. Please confirm this with MathWorks Tech Support and submit an enhancement request with your use-case.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!