Documentation

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 Apply Custom Storage Classes Directly to Signal Lines, Block States, and Outport Blocks.

To apply storage classes interactively or programmatically, see Control Signals and States in Code by Applying Storage Classes. For information about custom storage classes, see Control Data Representation by Applying Custom Storage Classes.

Storage class

Select a storage class or custom storage class for the signal. To apply storage classes interactively or programmatically, see Control Signals and States in Code by Applying Storage Classes. For information about custom storage classes, see Control Data Representation by Applying Custom Storage Classes.

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 SimulinkGlobal.

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.

More About

Was this topic helpful?