DDS Dictionary
Manage DDS aspects of an application
Open the DDS Dictionary
Open a model in the DDS Blockset app. On the DDS tab, click Code Interface and select DDS Dictionary.
In a Simulink data dictionary, if DDS definitions are available, a DDS Libraries node appears in the dictionary. If you open the DDS Libraries section of the Simulink data dictionary, in the Details pane, you can click Open DDS Libraries to open the graphical interface for the DDS Dictionary.
Examples
Parameters
TypesName
— Names of DDS data type libraries and data types
character vector
The names of DDS data type libraries or DDS data types available in the DDS Dictionary.
Example: TypeLibrary, ShapeType
Type
— DDS data type
character vector
The DDS data type in the DDS Dictionary. Supported DDS data types are Const, Enum, and Struct.
To view the equivalent Simulink data type for a DDS data type, select a DDS data type to open the Details pane and review the corresponding Simulink data type information.
DDS Data Type | Simulink Data Type |
---|---|
Const | Numeric MATLAB variable |
Enum | Enumeration |
Struct | Simulink.Bus object |
The Details pane displays the full name and short name of a DDS
data type. Fullname
is a concatenation of the full path of the nested
module names defined in the namespace hierarchy for the data type.
Shortname
is a version of the long name that is shortened by using
a unique identifier representing the namespace hierarchy.
For Struct types, the Details pane also displays
Base
, which is the base of the data type. If you specify a base for
a Struct type, the Simulink bus object contains elements of the base type in addition to the elements
defined for the data type. DDS Blockset checks for name conflicts and prevents the
addition of elements with the same name in the hierarchy.
Type names are represented in Simulink and generated code as follows:
For new DDS dictionaries created in R2022b, data type names are the short names.
For DDS dictionaries created in R2022a or earlier, data type names are the full names.
For example, the data type name for a Simulink object in R2022a is represented as
the full name, which is the module name appended to the instance name:
Shapes_Rectangle
, Base_Polygon
,
Common_Origin
. In R2022b, these data types are represented as the
short names, S_Rectangle
, B_Polygon
,
C_Origin
.
For DDS dictionaries created in R2022a or earlier and moved to R2022b, data type names are represented as the full names for backward compatibility.
Example: Const, Enum, Struct
Name
— Names of Domain libraries, modules, Domains, and Topics
character vector
The names of Domain Libraries, Domain Modules, Domains, and Topics available in the DDS Dictionary.
Example: ShapesDomainLibrary, ShapesLibrary, Circle
Domain ID
— ID of a Domain
character vector
Domain ID you can set to specify a Domain.
Example: 1
Topic Type
— DDS data type specified for a Topic
character vector
The DDS data type that a Topic uses for its Data Samples.
Example: ShapeType
Name
— Names of QoS libraries and profiles
character vector
The names of Quality of Service (QoS) libraries and profiles.
Example: BuiltInQosLibrary, Event, DataReaderQoS
QoS Type
— Specifies the type of QoS profile
character vector
The QoS Type is a read-only field that shows if a QoS profile is specified for DataReaders or DataWriters.
Example: DataReaderQoS