Configure Internal Data
Configure Default Representation of Internal Data
In the Code Mapping Editor, click the Data Defaults tab.
Select the row representing the category of internal data that you want to configure.
In the Storage Class column, select a storage class. If a Simulink® data dictionary that includes a shared coder dictionary for which defaults are set up is attached to your model, you can select
Dictionary Default. For help on choosing a storage class, see Choose Storage Class for Controlling Data Representation in Generated Code. For information on using dictionary defaults, see Configure Model Elements for Code Generation with Definitions Stored in Shared Data Dictionary. If you need to define a new storage class, see Define Service Interfaces, Storage Classes, Memory Sections, and Function Templates for Software Architecture.In the Property Inspector, add values for unspecified properties. For example, if you select storage class
Const, specify values for properties HeaderFile and DefinitionFile.Save the model.
Override Default Representation for Individual Internal Data Elements
Click the Model Data Editor tab.
In the Model Data Editor, with the view set to Code, click the tab for the type of data element that you want to configure.
Update the model to include the latest model data by clicking the update model data button.
In the filter text box, enter a string that will help you find the row for the data element.
In the Storage Class column, select a storage class. For example, you might want to change the storage class setting for Model Workspace parameters to
Model default.In the table or Property Inspector, set values for available properties.
Save the model.