What do I need to compile a Simulink Model?

3 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by