Documentation

Simulink.CoderInfo

Specify information needed to generate code for signal or parameter data

Description

Simulink® creates a Simulink.CoderInfo object for each data object that you create. Data objects represent signal, state, or parameter data. The Simulink.CoderInfo object exists in the CoderInfo property of each data object.

Data objects include objects of these classes:

Use the properties of the Simulink.CoderInfo object to configure the representation of the parent data object in the generated code.

You can set the properties of a Simulink.CoderInfo object through the CoderInfo property or the property dialog box of the parent data object. For example, the following MATLAB® expression sets the StorageClass property of a Simulink.CoderInfo object used by a signal object named mysignal.

mysignal.CoderInfo.StorageClass = 'ExportedGlobal';

Property Dialog Box

Use a data object property dialog box to set the properties of a Simulink.CoderInfo object.

Properties

Name

Description

Alias

Alternative name for this data in the generated code.

Alignment

Data alignment boundary for this data. See Data Alignment for Code Replacement (Embedded Coder) for more information.

CustomAttributes

Custom storage class attributes of this data. You must set the property StorageClass to 'Custom' to enable this property. See Introduction to Custom Storage Classes (Embedded Coder) for more information.

CustomStorageClass

Custom storage class of this data. You must set the property StorageClass to 'Custom' to enable this property.

StorageClass

Storage class of this data. For more information, see Control Signals and States in Code by Applying Storage Classes (Simulink Coder) or Block Parameter Representation in the Generated Code (Simulink Coder).

Introduced in R2015a

Was this topic helpful?