How do I generate C++ Code for a Simulink Model that is Callable from C?

How do I generate C++ Code for a Simulink Model that is Callable from C?

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 30 de Mzo. de 2021
Editada: MathWorks Support Team el 30 de Mzo. de 2021
See the following steps:
1. Set the 'Language' to 'C++' under the Code Generation Settings
  
2. Set the 'Code interface packaging' to 'Nonreusable function' under the Interface Settings (under the Code Generation Dropdown)
     
3. Generate code for the model
See the following link for an example of this, and the rest of the page for more examples regarding customization of generated code:

Más respuestas (0)

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by