how does dds blockset work?
the dds blockset enables you to create dds applications in simulink®. if you have an application modeled in simulink that you would like to be able to use dds, you can use the dds blockset to easily connect to the dds middleware platform. the dds blockset brings dds concepts into the simulink environment, models those concepts in your simulink application, and then enables you to connect your application to dds.
conceptual dds blockset workflow
you start with the dds network and the dds definitions required for your dds application.
create dds definitions
you then bring your dds definitions into the simulink environment. you can either import or create these definitions. once the definitions are in the simulink environment, domains, topics, types, quality of service (qos), and domain participant information is available in simulink.
model dds applications in simulink
you can now construct or adapt a simulink model so that it behaves as a publisher, subscriber, or an application that is both a publisher and subscriber.
you then configure the dds interface. the dds interface is the connection point between the application and the dds network. specifically, when you use the dds blockset, the interface is the topic and qos specified on the datawriters and datareaders for your application.
deploy applications to dds network
after you have appropriately modeled your dds application, build the model and use the executable to deploy your application on the dds network. now your dds application can communicate with other applications by using dds.
the dds blockset provides out-of-the-box support for the dds vendors rti and eprosima.
dds blockset workflow
to use the dds blockset tools to complete these conceptual steps:
use the dds application quick start to import or create dds definitions.
view or edit dds definitions in the dds dictionary.
use dds blocks to model a publisher or subscriber.
use the code mappings editor to configure the dds interface (the topic and qos properties of datareaders and datawriters).
build the application executable to deploy the application on dds network.