How do I view the actual generated C code from a simulink model?

2 visualizaciones (últimos 30 días)
Joshua Ford
Joshua Ford el 17 de Feb. de 2021
Respondida: Deepak Meena el 23 de Feb. de 2021
I am interested in generating C code from a Simulink model and then viewing the actual C code. Within Simulink Coder, the reports only contain C files with no C code just calls such as void, initialise etc. Where can I find and access the actual C code? I have tried using the MinGw-64 C compiler however that only creates a mex file. I don't want a mex file I just want the C code to view it.
How do I do this?
Cheers

Respuestas (1)

Deepak Meena
Deepak Meena el 23 de Feb. de 2021
Hi Joshua,
Your Generated report should look like this :
The C code would be under the Generated code section. The Generated code would look like this
If your generated code is empty , try to check the settings under the model configuration , and see the details of the target language compiler and other settings are as required.
Refer to this links for more information:

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by