Model Header
Specify external header code
Description
For a model that includes theModel Headerblock, the code generator adds external code that you specify to the header file (
) that it generates. You can specify code for the code generator to add near the top and bottom of the header file.model
.h
Note
If you include this block in a referenced model, the code generator ignores the block for simulation target builds, but processes the block for other system target files.
![](http://www.tatmou.com/help/releases/R2017b/rtw/ref/icon_model_header.png)
Parameters
See Also
Model Source|System Disable|System Outputs|System Update|System Derivatives|System Enable|System Initialize|System Start|System Terminate
Topics
- Place External C/C++ Code in Generated Code(Embedded Coder)
Introduced in R2006a
Was this topic helpful?