Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 (Embedded Coder).

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

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 (Simulink Coder). For information about custom storage classes, see Control Data Representation by Applying Custom Storage Classes (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 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.

Related Topics

Was this topic helpful?