Problems with group subscriptions
E-mail from @kyrsjo:
Hello,
I'm trying to debug a problem that I'm seeing when doing group subscriptions. The issue is that when subscribing to 3 scopes, the data arrives to the program almost, but not quite, at the same time. Thus I'm getting 3 calls to the callback function inside Python, i.e. I'm getting a burst of 3 callbacks every 1.2 seconds. Furthermore, the data received is often the same - sometimes one scope updates per callback, and sometimes all three are the same as in the last callback etc..
I've checked, and the problem occurs neither in Java or Matlab. For Java, I've tried both the classpath used by MatlabJapc and the one used by pyjapc, with no difference.
My Java and python test programs and auxillary scripts can be found at: /clear/data/Users/kyrsjo/java-japc-test where Test.py is a Python test program, and Test.java the Java test program. To run any of them, I first sourced /clear/data/Users/kyrsjo/setupPython.sh, for the Java program the script compileAndRun.sh will dig out the correct classpath (one of two alternatives) and compile then run Test.java.
Could you please have a look? For what it's worth, Davide looked in PyJapc and confirmed that the calls to Japc should be the same as inside MatlabJapc...
Best regards, Kyrre Sjobak