Model Header
Specify external header code
Libraries:
Simulink Coder /
Custom Code
Description
For a model that includes the Model Header block, 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
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.
Note
This block is intended for inserting arbitrary custom code into the generated code in specific locations. See the C Caller and C Function blocks, which are more typically used for integrating custom algorithmic code into a model.
Examples
Parameters
Version History
Introduced in R2006a