Configure the DDS Interface
R2026bThe DDS interface defines how a Simulink® application communicates on the DDS network. It specifies the Topics and Quality of Service (QoS) settings associated with the model’s inports (DataReaders) and outports (DataWriters).
To configure the DDS interface for the shapesdemo model:
Open the Code Mappings Editor. On the DDS tab, click Code Interface and select Individual Element Code Mappings.

Configure a DataReader. In the Code Mappings editor, click the Inports tab:
Choose a Topic for inport from the drop-down list. For the
Squareinport, select the Topic asShapesDomainLibrary/ShapesDomain/Square.Choose the DataReader source. Under the Reader XML Path, select
Autoto have DDS Blockset automatically generate a reader for the application.Select the Quality of Service (QoS). Under the Reader QoS, select:
Default — The default QoS profile is the provided by your target DDS vendor, eProsima.
Built-in QoS profiles — These profiles automatically appear when you use the Quick Start default dictionary option.
Imported from XML — Imported QoS profiles also appear as options in the drop-down.
For this example, select
Default.
Configure a DataWriter. In the Code Mappings editor, click the Outports tab:
Choose a Topic for the outport from the drop-down list. For the
Circleoutport, specify the Topic asShapesDomainLibrary/ShapesDomain/Circle.Choose the DataWriter source. Under the Writer XML Path, select
Autoto have DDS Blockset automatically generate a writer for the application.Select the Quality of Service (QoS). Under the Writer QoS, select:
Default — The default QoS profile is the provided by your target DDS vendor, eProsima.
Built-in QoS profiles — These profiles automatically appear when you use the Quick Start default dictionary option.
Imported from XML — Imported QoS profiles also appear as options in the drop-down.
For this example, select
Default.