DDS Python Connector

3 posts / 0 new
Last post
Last seen: 1 year 3 months ago
Joined: 06/03/2022
Posts: 2
Setting discriminator in Python for member with multiple discriminators

Using RTI Connector for Python.

On the output instance, is it possible to explicitly set a union discriminator?

I have a union with 2 members, where each member is associated with 2 discriminators.  The default/first discriminator is always set on the various set_ calls.

The <types> below is contrived, but illustrates the situation.

Is it possible to set "" with the discriminator set to "D" rather than "C"?


1 post / 0 new
Last seen: 1 year 7 months ago
Joined: 10/11/2022
Posts: 1
Python RTI Connector Event Loop

Do you have an example of how to setup an event loop in python with the DDS Python Connector?

I only see input.wait() and connector.wait() on  but both appear to be blocking.  How do I set up a way to register a call back when new messages are recieved?


2 posts / 0 new
Last post
Last seen: 2 years 4 days ago
Joined: 05/27/2022
Posts: 1
RTI Python Crashes with FuncAnimation

I am implementing a python script which seeks to plot in real time read data from an RTI python connector.

When I reference a function rather than call a function which uses input.wait(), the python kernel crashes. Is there a reason why this happens?

I added a screenshot of the code. The kernel crashes at the animation call.

5 posts / 0 new
Last post
ilya_1725's picture
Last seen: 1 year 11 months ago
Joined: 04/20/2020
Posts: 24
Using rti/service/admin/command_request example


There is an administration topic to control RTI data recorder. The topic is rti/service/admin/command_request.

Does anyone have a python example to do this remote control of the data recorder? Sending commands and processing replies.


6 posts / 0 new
Last post
Last seen: 4 years 3 weeks ago
Joined: 03/01/2020
Posts: 8
Python DDS: OSError: exception: access violation

Dear All!


I am trying to publish some sensor data via DDS from Python code.

Basically, the relevant parts of the code are:

with rti.open_connector(config_name="MyParticipantLibrary::MyPubParticipantT", url="Definition.xml") as connector:



And after some steps within the statemachine:

2 posts / 0 new
Last post
Last seen: 4 years 6 months ago
Joined: 11/09/2019
Posts: 1
Python DDS connector issue


I want to use 2 connectors in my python program but I don't know why this error occurs

1 post / 0 new
Last seen: 3 years 2 months ago
Joined: 05/08/2017
Posts: 5
Using rtirecord.xml in python connector/XML Application

Main Question:

How do I explicitly fill out a union? The other examples given on the forum rely on it automatically figuring out what type to use, but the rtirecord struct (ab)uses the discriminator to mean different things!

Subscribe to RSS - DDS Python Connector