Main Content

Create DDS Definitions

DDS Blockset enables applications modeled in Simulink® to use DDS by bringing DDS concepts such as Domains, Topics, Types, and Quality of Service (QoS) into the Simulink environment. To bring these concepts into Simulink, you can use the DDS Application Quick Start to import DDS definitions from XML, use previously defined definitions stored in a Simulink data dictionary, or use a set of predefined default definitions created specifically for the shapesdemo model. For this example, you can use the default DDS definitions.

  1. Open the model shapesdemo.

    openExample("shapesdemo");

    Image of Subscribe, Compute, and Publish in the Shapes Demo example model.

  2. Open the DDS Blockset app. In the Apps Gallery, click DDS Application Designer.

  3. After you open the DDS Blockset app, in the toolbar, click Quick Start to open the DDS Application Quick Start wizard. Walk through the Quick Start steps:

    1. Specify the DDS application name and vendor. Leave the application name as its default, which is the name of the application model, shapesdemo. Select the DDS vendor that you want to use for your application. For this example, select eProsima.

      Dialog box showing the Set Application options of the DDS Application Quick Start.

    2. Specify the source of the DDS definitions. You can import DDS definitions from XML, use previously defined definitions stored in Simulink, or use predefined default definitions created for the shapesdemo model. For this example, select Create and use default dictionary.

      Dialog box showing the Associate Dictionary options of the DDS Application Quick Start.

    3. Click Finish. When you finish the DDS Application Quick Start, the app creates your DDS application, associates it with the DDS Dictionary, and configures it appropriately for eProsima.

      Dialog box showing the finish information of the DDS Application Quick Start.

Related Topics