Implementing a Simulink model in an executable file
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Kaustubha Govind
2012년 8월 1일
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!