Code Generation Options

The following controls set properties that Simulink® Coder™ uses to generate code from the model. If you are not going to generate code from the model, ignore them.

Signal object class

Choose a custom storage class package by selecting a signal object class that the target package defines. For example, to apply custom storage classes from the built-in package mpt, select mpt.Signal. Unless you use an ERT-based code generation target with Embedded Coder®, custom storage classes do not affect the generated code.

If the class that you want does not appear in the drop-down list, select Customize class lists. For instructions, see Target Class Does Not Appear in List of Signal Object Classes (Embedded Coder).

To apply storage classes interactively or programmatically, see Apply Storage Classes to Individual Signal, State, and Parameter Data Elements (Simulink Coder). For information about custom storage classes, see Apply Built-In and Customized Storage Classes to Data Elements (Embedded Coder).

Storage class

Select a storage class or custom storage class for the signal. To apply storage classes interactively or programmatically, see Apply Storage Classes to Individual Signal, State, and Parameter Data Elements (Simulink Coder). For information about custom storage classes, see Apply Built-In and Customized Storage Classes to Data Elements (Embedded Coder).

Type qualifier

Enter a storage type qualifier for this signal such as const or volatile.

This parameter is hidden unless you previously set its value. To enable this parameter, set Storage class to ExportedGlobal, ImportedExtern, ImportedExternPointer, or Model default.

Type qualifier will be removed in a future release. To apply storage type qualifiers to data, use custom storage classes and memory sections. Unless you use an ERT-based code generation target with Embedded Coder, custom storage classes and memory sections do not affect the generated code.

Related Topics