Azzera filtri
Azzera filtri

Implementing a Simulink model in an executable file

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Kaustubha Govind
Kaustubha Govind il 1 Ago 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.

Più risposte (0)

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by