Placement of code within Embedded Coder output - at top of model file

1 view (last 30 days)
Is there a directive in tlc to place the contents of a buffer at the top of the generated model file (after the include section) - similar to the function available through:
Parameters > Code Generation > Custom Code Under the "Source file" selection you can put your custom code, that will generate:
  • #include "model.h"
  • #include "model_private.h"
  • /* user code (top of source file) */
  • your custom code
  • rest of model generation code
I would like this directive to be in the TLC file instead instead of in the model parameters - but haven't figured out how to insert code outside the specific function bodies (_initialize, _terminate, etc...) within the tlc directives

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!