how does dds blockset work? -凯发k8网页登录

main content

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.

representation of dds definitions in the global data space.

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.

representation of dds definitions in the global data space for use with a domains and domain participants.

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.

representation of the model as a domain participant.

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.

representation of the dds interface.

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.

representation of communication over the dds interface.

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:

  1. use the dds application quick start to import or create dds definitions.

  2. view or edit dds definitions in the dds dictionary.

  3. use dds blocks to model a publisher or subscriber.

  4. use the code mappings editor to configure the dds interface (the topic and qos properties of datareaders and datawriters).

  5. build the application executable to deploy the application on dds network.

see also

|

网站地图