Documentation Center

  • Trial Software
  • Product Updates

Simulink.ParamCoderInfo

Specify information needed to generate code for parameter

Description

Simulink® software creates an instance of this class for each instance of a Simulink.Parameter object that it creates. Simulink software uses the Simulink.ParamCoderInfo object to store information needed to generate code for the parameter specified by the Simulink.Parameter object.

You can set the properties of an instance of this class via the CoderInfo property or the property dialog box of the Simulink.Parameter object that uses it. For example, the following MATLAB® expression sets the StorageClass property of a Simulink.ParamCoderInfo object used by a parameter object name myparam.

myparam.CoderInfo.StorageClass = 'exportedGlobal';

Property Dialog Box

Use the Code Generation Options section of the Simulink.Parameter property dialog box to set the StorageClass, Alias, and Alignment properties of objects of this class.

Properties

Name

Description

Alias

Alternate name for this parameter.

Alignment

Data alignment boundary for this parameter. See Configure Data Alignment for Function Implementations in the Embedded Coder® documentation for more information.

CustomAttributes

Custom storage class attributes of this parameter. See Introduction to Custom Storage Classes in the Embedded Coder documentation for more information.

CustomStorageClass

Custom storage class of this parameter.

StorageClass

Storage class of this parameter. For more information, see Parameters in the Simulink Coder™ documentation.

Was this topic helpful?