Main Content

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 #include directive. You can also include extern declarations of variables or functions.

    Include header configuration parameter.

  • You can include a custom header file without the #include directive. However, mixed declarations (with and without the #include directive or valid C/C++ code and without the #include directive) in a single configuration parameter set are not supported. (since R2024a)

    Include header files without #include directive.

Command-Line Information

Parameter: SimCustomHeaderCode
Type: character vector
Value: any C code
Default: ''

Recommended Settings

ApplicationSetting
Debugging

No recommendation

Traceability

No recommendation

Efficiency

No recommendation

Safety precaution

No recommendation

Related Topics