Specify information needed to generate code for signal, state, or parameter data
Use a Simulink.CoderInfo
object to specify code generation
settings for signal, state, and parameter data in a model.
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';
When you create a data object, Simulink sets the value of the CoderInfo
property by creating
a Simulink.CoderInfo
object. You do not need to create a
Simulink.CoderInfo
object explicitly.