Model Configuration Parameters: Code Generation Custom Code - MATLAB & Simulink (original) (raw)
Main Content
The > category includes parameters for inserting custom C code into the generated code. These parameters require a Simulink® Coder⢠license.
On the Configuration Parameters dialog box, the following configuration parameters are on the > pane.
Parameter | Description |
---|---|
Use the same custom code settings as Simulation Target (Simulink Coder) | Specify whether to use the same custom code settings as those in the Simulation Target > pane. |
Additional code (Simulink Coder) | Specify custom code to include near the top of the generated model source file. |
Include headers (Simulink Coder) | Specify custom code to include near the top of the generated model header file. |
Initialize code (Simulink Coder) | Specify custom code to include in the generated model initialize function. |
Terminate code (Simulink Coder) | Specify custom code to include in the generated model terminate function. |
Include directories (Simulink Coder) | Specify a list of include folders to add to the include path. |
Source files (Simulink Coder) | Specify a list of additional source files to compile and link with the generated code. |
Libraries (Simulink Coder) | Specify a list of additional libraries to link with the generated code. |
Defines (Simulink Coder) | Specify preprocessor macro definitions to be added to the compiler command line. |
Related Topics
- Model Configuration Set Customization (Simulink Coder)