Joy

3 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
DataReader data changes on multiple threads

StatusCondition can be used to detect when data changes on a DataReader. This is useful in a single thread, but if there are multiple threads that query the same  DataReader then a read() operation will effect the state of the DataReader in one thread and the other thread(s) will miss an update.So I looked through the API and found the field received_sample_count in DataReaderProtocolStatus. It seems reasonable that each thread can update a variable with received_sample_count and checks for changes in this count to detect a change of data in the DataReader.

Organization:
6 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Using untyped read

The Java API documentation for read_untyped is:

void read_untyped (List received_data, SampleInfoSeq info_seq, int max_samples, int sample_states, int view_states, int instance_states)

What is the approprate type to  use for the received_data parameter ?

 List<T> dataSeq = new ArrayList<>(); does not work. It throws this exception. The list has an initial length of 0, but

Organization:
3 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Filter on DynamicData

Content filters seem to work on DynamicData - at least when key fields are used in the expression. I assume this works

because key fields are used to constuct the instance handle and filtering is possible without deserialization. I have not

tested this, but will filtering work on non-key fields for DynamicData ?

 

Thanks

Nico.

 

Organization:
1 post / 0 new
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Size of typecode

Is there an API call to get the size of a typecode ? The same size as can be obtained by using Monitor as in this reference :

 

http://community.rti.com/kb/how-check-size-topics-typecode-using-rti-monitor

Thanks

Nico.

 --------------------------------------Update----------------------------------------------------------

Organization:
5 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Remote Routing Service configuration of content filter

I am trying to remotely change the configuration service. In particular, the content filter must be changed. However, the routing service

reports a syntax error that cannot be explained by the available documentation. I created the XML string but eventually resorted to using

rtirssh to eliminate the possiblility of errors in the application software, but the error is still the same.

The rtirssh command used is (routing service is disabled) :

Organization:
1 post / 0 new
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Multiple parameters on router content filter

Is it possible to configure a content filter in the Routing Service with multiple parameters ?

For example this fragment will do one parameter, but how can multiples be done ?

Organization:
3 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Remote Routing Service configuration

NOTE: Problem was resolved. The invocation counter field should be kept constant when multiple fragments are send.

 

Hi,

I am having a problem to get remote router configuration to work when the content of the Xml URL is larger than XML_URL_MAX_LENGTH.

It works fine when the size is smaller than XML_URL_MAX_LENGTH and only one message is required. The procedute I use is to send multiple messages

with only the last one with is_final set to TRUE. What is the expected format for the strings in the fragments ?

Organization:
8 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Missing Samples

We miss samples on a configuration topic. Reliability QoS is RELIABLE and durability is TRANSIENT LOCAL. The topic is published once on startup

and there are 1600 samples. However, I noticed that only 1024 is consistenly read. I have read some articles that mention this behavior:

http://community.rti.com/kb/why-does-my-dds-datareader-miss-first-few-samples, but the consistency of the magic number 1024 makes me wonder if

Organization:
2 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Prototyper - number of domains

It seems a Prototyper instance can only participate in one domain.

Is that a correct statement ?

 

Thanks

Nico

 

Organization:
4 posts / 0 new
Last post
Offline
Last seen: 6 years 10 months ago
Joined: 07/12/2012
Posts: 51
Configuring Analyzer for TCP and WAN

Hi,

Is there documention available or a few pointers on how to configure Analyzer tool for WAN (over TCP). The default installation 

requires for example to supply values for "transport_plugin_prefix" and "server" if the WAN transport is enabled (there may be more fields).

A search of the documentation for "transport_plugin_prefix" did not produce any results.

Thanks

Nico.

 

Organization:
Subscribe to RSS - Joy