What do I need to compile a Simulink Model?

2 ビュー (過去 30 日間)
Benjamin
Benjamin 2013 年 8 月 8 日
I need to compile a Matlab tool that uses a Simulink model. The model gets variables from the Matlab base workspace and sends its results also to the base workspace. Do I need anything else than the Matlab Compiler and rtwbuild from Simulink Coder? How can I use the code from Simulink Coder in my Matlab tool?

採用された回答

Friedrich
Friedrich 2013 年 8 月 8 日
編集済み: Friedrich 2013 年 8 月 8 日
Hi,
example and explanation here.
  3 件のコメント
Benjamin
Benjamin 2013 年 8 月 26 日
Hi, at the moment I am stuck at point 4 of the explanation above. How can I run the whole simulation of the Model in the library? For the Simulink model I used set_param('model','StopFcn',...) sim('model') What would be the equivalent functions for the library?
Kaustubha Govind
Kaustubha Govind 2013 年 8 月 26 日
Benjami: As is described in the application example for calling into shared libraries generated by Embedded Coder, you decide how to code the loop around the call to the mdl_step() function. (Essentially the SIM command also calls this function in a loop - in the same sequence of things that the application example shows)

サインインしてコメントする。

その他の回答 (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