< Previous | Next >

Lesson 1: Add the DDS profile to your model

To create a Data Distribution Service for Real-Time Systems (DDS) application, add the DDS profile to your model.
  1. Create a model in Rational® Rhapsody® Developer for C++.
  2. Add the DDS profile to your model: Select File > Add Profile to Model, find the <Rational Rhapsody installation folder>\Shared\Profiles\DDS path, and select DDS.sbs.
    Note: Another way to do this is to select the type of DDS when you first create a model. The method used in this tutorial is applicable for a new model and for an existing one.

    As the following figure shows, when you apply the profile, a Profiles category is added to the model. Within this profile are the various elements, such as classes and interfaces, that are required to create a DDS application.

    In addition, the ddsDiagram icon is added to the Diagrams toolbar. Use this icon to create a ddsDiagram diagram, which is a type of object model diagram. You use a ddsDiagram diagram to add DDS terms from the DDS profile.

  3. After you have added the profile, modify the value of the property CPP_CG::Configuration::DDSImplementation to reflect the DDS implementation you are using - RTI or OpenSplice.
  4. If you are using the RTI implementation, modify the value of the property CPP_CG::RTIMSVC9::LibPath if you are developing a Windows application or the property CPP_CG::RTILinux::LibPath if you are developing a Linux application. The value of the property should reflect the RTI library directory appropriate for your environment. The directory names reflect the following variables: 32-bit or 64-bit, operating system, and compiler. For example, if you are running 32-bit Windows and using the Visual Studio 2008 compiler, the appropriate library directory would be i86Win32VS2008.

Lesson checkpoint

In this lesson, you learned the following information:
  • How to add the DDS profile to your model
  • Which elements are added to your model when you add the DDS profile
In the next lesson, you will create a ddsDiagram diagram.
< Previous | Next >

Feedback