Overview of the Data Dictionary
A data dictionary contains all of the parameters and signals
that the source code uses, and a description of their properties.
The data dictionary that is created for Simulink and Stateflow models
is called the code generation data dictionary. (You can use the data
dictionary for simulation. This does not require that you have a Real-Time Workshop Embedded Coder license.)
The dictionary is the total number of data objects that appear in
the middle pane of the Model Explorer. These data objects also appear
in the MATLAB workspace. The procedure described in this chapter
allows you to create or edit the dictionary. The procedure allows
you to control property values for each data object. This, in turn, determines
how each parameter and signal is defined and declared in the automatically
generated code.
The values of data object properties can affect where the code
generator places a parameter or signal in the generated file. This
is because some property values are associated with different template
symbols. The location of a symbol in a template determines where the
associated parameter or signal is located in the generated file. For
details about templates and symbols, see Configuring Templates for Customizing Code Organization and
Format.
It is helpful to define terms you will see when managing the
dictionary, especially when you view them using the Model Explorer.
The Simulink software uses a hierarchy of terms that are drawn
from object-oriented programming. For details, see Working with Data Objects in
the Simulink documentation. The sketch below summarizes this
hierarchy.

Simulink or mpt is the package. Parameter and Signal are two classes in each of these packages. Each class has a number
of properties associated with it. Sometimes properties are called attributes. Data
objects (the parameters and signals) are the instances of a package.class that
make up the data dictionary. All parameter data objects have a set
of properties. All signal data objects have a different set of properties
than that for parameters. For each data object, each property in the
set has its own property value that
must be specified in the dictionary.
Note
In this document, "signal" refers to a named wire on a Simulink model,
a discrete state, or a data store. |
 | Managing Data Definitions and Declarations With the Data Dictionary | | Creating Simulink and mpt Data Objects |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit