Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can I generate code for subsystem parameters?

1 visualización (últimos 30 días)
Zsolt Szekely
Zsolt Szekely el 20 de Feb. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have some variables in my Simulink model that I wish to generate a separate header and source file for. I was wondering if this is possible with Real Time Workshop Embedded Coder.
Example.
-----------------
myheader.h
extern uint32 x;
-----------------
-----------------
myheader.c
uint32 x = 5;
-----------------
When I create a variable in the Matlab workspace it generates code in the mymodel.h and mymodel.c files. I still want some of my variables to be generated there, but I also need those mentioned above in separate files and then include the header file and use them in the main model.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by