code generation for simulink models

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

 Réponse acceptée

Kaustubha Govind
Kaustubha Govind le 10 Nov 2011

2 votes

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

Plus de réponses (1)

Christin
Christin le 16 Août 2012

0 votes

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 commentaires

Kaustubha Govind
Kaustubha Govind le 16 Août 2012
No idea what mcp/mcpd file means - could you elaborate please? AFAIK, Simulink Coder does not generate such a file.
Christin
Christin le 16 Août 2012
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 le 17 Août 2012
Simulink not generates any project file. It generated only .c and .h files which contains your model's implementation in C/C++ language.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by