フィルターのクリア

Implementing a Simulink model in an executable file

2 ビュー (過去 30 日間)
Roy Veldhuizen
Roy Veldhuizen 2012 年 8 月 1 日
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.

採用された回答

Kaustubha Govind
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 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by