필터 지우기
필터 지우기

code generation for simulink models

조회 수: 1 (최근 30일)
siraj pasha
siraj pasha 2011년 11월 9일
how to generate code for simulink models??i am using simpower systems and whenever i go for generate code it says change the solver.. and if at all code is generated then what format would it be in?? can i get in .m format??

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 11월 10일
Only fixed-step solvers are supported for code-generation, because variable-step solvers "go back" in simulation time to adjust for error tolerances, which does not make sense in real-time systems.
The code generated from Simulink/Embedded Coder is C/C++.

추가 답변 (1개)

Christin
Christin 2012년 8월 16일
when generating the code for a simulink model, the mcp/mcpd file is not being generated. How can I get that file to be generated?
  댓글 수: 3
Christin
Christin 2012년 8월 16일
the mcp or mcpd file is the project file so that the entire project can be opened in other programs like Mplab IDE. Its mentioned in http://www.sim2lab.com/EX01_page5.html
TAB
TAB 2012년 8월 17일
Simulink not generates any project file. It generated only .c and .h files which contains your model's implementation in C/C++ language.

댓글을 달려면 로그인하십시오.

카테고리

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