Implementing a Simulink model in an executable file
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
0 commentaires
Réponse acceptée
Kaustubha Govind
le 1 Août 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.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!