Include headers
Description
Specify interface header code containing types and function declarations to import into Simulink®.
Category: Simulation Target
Settings
Default: ' '
Tips
Write valid C/C++ code. When you include a custom header file, use the
#includedirective. You can also includeexterndeclarations of variables or functions.
Additionally, for versions R2024a or later, you can include a custom header file without the
#includedirective. However, mixed declarations in a single configuration parameter set are not supported. For this parameter, mixed declarations occur when any one of the following conditions is met.Declaring header files with and without the
#includedirective.Include valid C/C++ code and declare header files without the
#includedirective.
(since R2024a)

Command-Line Information
Parameter:
SimCustomHeaderCode |
| Type: character vector or string scalar |
| Value: any C code |
Default:
"" |
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No recommendation |
| Traceability | No recommendation |
| Efficiency | No recommendation |
| Safety precaution | No recommendation |