| Contents | Index |

| On this page… |
|---|
Insert comments and pragmas into the generated code for data and functions.
This tab appears only if you specify an ERT based system target file.
Specify a package that contains memory sections you want to apply to model-level functions and internal data.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: ---None---
Suppresses memory sections.
Applies the built-in Simulink package.
Applies the built-in mpt package.
If you have defined any packages of your own, click Refresh package list. This action adds all user-defined packages on your search path to the package list.
| Parameter: MemSecPackage |
| Type: string |
| Value: '--- None ---' | 'Simulink' | 'mpt' |
| Default: '--- None ---' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Add user-defined packages that are on the search path to list of packages displayed by Packages.
If you have defined any packages of your own, click Refresh package list. This action adds all user-defined packages on your search path to the package list.
Specify whether to apply a memory section to Initialize/Start and Terminate functions.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: Default
Suppresses the use of a memory section for Initialize, Start, and Terminate functions.
Applies a memory section to Initialize, Start, and Terminate functions.
| Parameter: MemSecFuncInitTerm |
| Type: string |
| Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile' |
| Default: 'Default' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify whether to apply a memory section to execution functions.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: Default
Suppresses the use of a memory section for Step, Run-time initialization, Derivative, Enable, and Disable functions.
Applies a memory section to Step, Run-time initialization, Derivative, Enable, and Disable functions.
| Parameter: MemSecFuncExecute |
| Type: string |
| Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile' |
| Default: 'Default' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify whether to apply memory sections to shared utility functions.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: Default
Suppresses the use of memory sections for shared utility functions.
Applies a memory section to shared utility functions, such as fixed-point functions, lookup table functions, and binary search functions.
| Parameter: MemSecFuncSharedUtil |
| Type: string |
| Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile' |
| Default: 'Default' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify whether to apply a memory section to constants.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: Default
Suppresses the use of a memory section for constants.
Applies a memory section to constants.
This parameter applies to:
| Data Definition | Data Purpose |
|---|---|
| model_cP | Constant parameters |
| model_cB | Constant block I/O |
| model_Z | Zero representation |
| Parameter: MemSecDataConstants |
| Type: string |
| Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile' |
| Default: 'Default' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify whether to apply a memory section to root input and output.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: Default
Suppresses the use of a memory section for root-level input and output.
Applies a memory section for root-level input and output.
This parameter applies to:
| Data Definition | Data Purpose |
|---|---|
| model_U | Root-level input |
| model_Y | Root-level output |
| Parameter: MemSecDataIO |
| Type: string |
| Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile' |
| Default: 'Default' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify whether to apply a memory section to internal data.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: Default
Suppresses the use of a memory section for internal data.
Applies a memory section for internal data.
This parameter applies to:
| Data Definition | Data Purpose |
|---|---|
| model_B | Block I/O |
| model_D | DWork vectors |
| model_M | Run-time model |
| model_Zero | Zero-crossings |
| Parameter: MemSecDataInternal |
| Type: string |
| Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile' |
| Default: 'Default' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Specify whether to apply a memory section to parameters.
Memory section specifications for model-level functions and internal data apply to the top level of the model and to all subsystems except atomic subsystems that contain overriding memory section specifications.
Default: Default
Suppress the use of a memory section for parameters.
Apply memory section for parameters.
This parameter applies to:
| Data Definition | Data Purpose |
|---|---|
| model_P | Parameters |
| Parameter: MemSecDataParameters |
| Type: string |
| Value: 'Default' | 'MemConst' | 'MemVolatile' | 'MemConstVolatile' |
| Default: 'Default' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Display the results of memory section validation.
The code generation software checks and reports whether the currently chosen package is on the MATLAB path and that the selected memory sections exist inside the package.
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
![]() | Code Generation Pane: Data Type Replacement | Code Generation Pane: AUTOSAR Code Generation Options | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |