MATLAB Answers

0

Include external header files in generated souce file (.c file) and not in generated header file (R2014a)

Asked by Carl-Jakob Ulmer on 9 Sep 2015
Latest activity Answered by Jeevan Thomas on 11 Sep 2015
I use the data dictionary for defining signals and signals types which are imported via an external header file and are not generated from simulink.
The embedded coder is placing the #include of these external header files in the generated header file. However I want the #includes in the generated .c source file. Is this possible?

  0 Comments

Sign in to comment.

1 Answer

Answer by Jeevan Thomas on 11 Sep 2015
 Accepted Answer

EmbeddedCoder has a fixed programmed pattern of generating code through various system and block TLC files. All the imported Simulink data symbols, imported Stateflow machine data etc by default are placed in to model_private.h It can't be changed.

  0 Comments

Sign in to comment.