One host, one publisher, multiple subscriber

3 posts / 0 new
Last post
Offline
Last seen: 1 year 8 months ago
Joined: 01/10/2022
Posts: 14
One host, one publisher, multiple subscriber

I recently had some problems with the labview dds toolkit and would like to ask for technical support

I'm on one host, one thread publishes data, two threads subscribe data. A piece of data can only be subscribed by one thread at the same time, and there will be competition between two subscribing threads. But different hosts subscribe normally.

Below is my labview program vi.

Ismael Mendez's picture
Offline
Last seen: 8 months 6 days ago
Joined: 07/03/2017
Posts: 74

Hi Yugonghui,

The toolkit internally shares entities when possible. That is when for example create a new DataReader VI is called it checks internally if one of the existing DataReaders accomplishes the conditions to be reused (same domain id, QoS, topic, data type, type name...) then it is reused. What you are seeing here is that despite you are creating two DataReaders, internally there is only one that is shared in both threads. You can enable the forceExcluseReader option in the Create Reader configuration to create an exclusive DataReader. See more information in the section "Reading in Strictly Reliable Mode" and section "Configuring Advanced Reader Settings" of the Getting Started GuideYou can find it in Help->RTI DDS Toolkit->Open Getting Started Guide

 

Offline
Last seen: 1 year 8 months ago
Joined: 01/10/2022
Posts: 14

Hi Ismael Mendez,

Thank you for your help. It's useful.