Simulink.CoderInfo
Specify information needed to generate code for signal, state, or parameter data
Description
Use a Simulink.CoderInfo
object to specify code generation
settings for signal, state, and parameter data in a model.
The software 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';
Creation
When you create a data object, the software sets the value of the
CoderInfo
property by creating a Simulink.CoderInfo
object. You do not need to create a Simulink.CoderInfo
object
explicitly.
Properties
Examples
Extended Capabilities
Version History
Introduced in R2015a
See Also
Topics
- C Data Code Interface Configuration for Model Interface Elements (Simulink Coder)
- Create Tunable Calibration Parameter in the Generated Code (Simulink Coder)
- Data Objects
- Organize Parameter Data into a Structure by Using Struct Storage Class (Embedded Coder)