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 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