Limits on MinPublishingInterval and AvailableSamplingRates
Posted: 14 May 2018, 15:43
Hello,
I am using version 1.5.2 of the C++ SDK and a low latency kernel on Ubuntu.
My goal is to create a Client-Server subscription to transmit node changes in the Server's Address Space to the Client at high rates. I have a few questions regarding the publish and sample interval and hope you can solve my problem.
First question: Is there a lower limit to the publishing interval from the SDK point of view? Even when I set MinPublishingInterval in the server configuration file to 0 (ms), the lowest revised publishingInterval I can achieve is 1(ms).
Second question: Is it possible to achieve a publishing interval less than 1ms?
Third question: In this thread: https://forum.unified-automation.com/topic998.html you explained that the sample interval is a double and therefore sample intervals such as 0.1ms could be used. Unfortunately, I am not able to achieve non-integer sample rates. For instance I have 0, 0.5, 1, 2, 2.5, 5 as AvailableSamplingRates in the server config (and MinSupportedSampleRate = 0) and specified sample rates of 0.5 and 2.5 in createMonitoredItems. For a specified sample rate of 2.5, the revised sample rate is 2 and for 0.5 it is 0. The integer sample rates from above (0,1,2,5) are accepted by the server. How can I specify non-integer sample intervals?
Fourth question: I have observed that specified sample rates have been revised and accepted by the server if they were added as AvailableSamplingRates, even though they were below MinSupportedSampleRate (say MinSupportedSampleRate = 100, for instance). Does AvailableSamplingRates overwrite MinSupportedSampleRate?
I thank you for your efforts and greatly appreciate your help!
Kind regards
I am using version 1.5.2 of the C++ SDK and a low latency kernel on Ubuntu.
My goal is to create a Client-Server subscription to transmit node changes in the Server's Address Space to the Client at high rates. I have a few questions regarding the publish and sample interval and hope you can solve my problem.
First question: Is there a lower limit to the publishing interval from the SDK point of view? Even when I set MinPublishingInterval in the server configuration file to 0 (ms), the lowest revised publishingInterval I can achieve is 1(ms).
Second question: Is it possible to achieve a publishing interval less than 1ms?
Third question: In this thread: https://forum.unified-automation.com/topic998.html you explained that the sample interval is a double and therefore sample intervals such as 0.1ms could be used. Unfortunately, I am not able to achieve non-integer sample rates. For instance I have 0, 0.5, 1, 2, 2.5, 5 as AvailableSamplingRates in the server config (and MinSupportedSampleRate = 0) and specified sample rates of 0.5 and 2.5 in createMonitoredItems. For a specified sample rate of 2.5, the revised sample rate is 2 and for 0.5 it is 0. The integer sample rates from above (0,1,2,5) are accepted by the server. How can I specify non-integer sample intervals?
Fourth question: I have observed that specified sample rates have been revised and accepted by the server if they were added as AvailableSamplingRates, even though they were below MinSupportedSampleRate (say MinSupportedSampleRate = 100, for instance). Does AvailableSamplingRates overwrite MinSupportedSampleRate?
I thank you for your efforts and greatly appreciate your help!
Kind regards