How do I install and configure RTI for use with DDS Blockset?

22 views (last 30 days)
I am trying to build my model which contains DDS blocks into an executable that conforms to the RTI Connext DDS API. However, I encounter the following error after pressing the "Build" button:
Environment variable "NDDSHOME" is not defined, set it to the "RTI"
installation directory, for more information please refer to "RTI" documentation.
How do I resolve this issue and install RTI for use with Simulink and DDS Blockset?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 8 May 2024
Edited: MathWorks Support Team on 14 May 2024
To build and compile an executable with DDS Blockset that conforms to the RTI Connext DDS API, you must have  RTI Connext or RTI Connext Micro installed. You can either:
  • Install RTI Connext using the RTI Toolbox, or
  • Use your existing RTI Connext Professional installation.

Install RTI Connext Using the RTI Toolbox

To install a demo version of RTI Connext that is compatible with your version of DDS Blockset, you can download and install the "RTI Connext(r) DDS connectivity framework for DDS Blockset". See the RTI Toolbox  File Exchange page for details:
In R2023a and later, you can access the RTI Toolbox from Add-On Explorer within MATLAB. For R2021a through R2022b, use the file linked from the page above.
After finishing the installation of RTI Toolbox, make sure to follow the instructions from the "Getting Started" Guide which can be found here:
C:\Users\username\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\RTI Connext for DDS Blockset\doc\GettingStarted.mlx
Most importantly, run the following command once to configure the NDDSHOME environment variable, and restart MATLAB:
>> configure_rti_connext_dds()

Use an Existing Installation of RTI Connect with DDS Blockset

If you already have an installation of RTI Connext Professional, you don’t need to install the RTI toolbox, but you will need to (1) ensure that your version of RTI Connect is compatible with your version of DDS Blockset and (2) define the NDDSHOME environment variable.
The supported RTI versions are documented on the "DDS Blockset System Requirements" page (adjust the URL to match your MATLAB release): https://www.mathworks.com/help/releases/R2023b/dds/gs/system-requirements.html
For your convenience, the supported RTI versions per DDS Blockset release are summarized below:
  • Since R2023a: RTI Connext 6.1.0+ or RTI Connext Micro 2.0.0+
  • R2022a & R2022b: RTI Connext 6.0.1+ or RTI Connext Micro 2.0.0+
  • R2021b: RTI Connext 6.0.1+
  • R2021a: RTI Connext 6.0.0+
To define the NDDSHOME variable, refer to the RTI Toolbox page which has details on the different options for setting the NDDSHOME variable.
Additional Note:
 You can alternatively use eProsima as a middleware vendor which is included in the DDS Blockset installation. See: https://www.mathworks.com/help/releases/R2023b/dds/gs/build-and-deploy-application-to-dds-network.html

More Answers (0)

Categories

Find more on Get Started with DDS Blockset in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!