Closed tango-controls-bot closed 7 years ago
Original comment by: katyho (http://sourceforge.net/u/katyho)
Original comment by: JeanLucPons (http://sourceforge.net/u/jlpons)
Logged In: YES user_id=693666 Originator: NO
This is the normal behavior, when you pass 'A' in the jive argin entry box, it means the ASCII code of 'A' which is 65. If you want to pass 0xA just enter 0xA in the entry box. Ex: 0xA,'A' should have the same behavior as arginData.insert(new byte[]{0xA,'A'});
Original comment by: JeanLucPons (http://sourceforge.net/u/jlpons)
Jive return wrong value for the execution of "DevVarCharArray" command in tangotest.
If 'A','B' is send in argin. The result is : Command: tango/tangotest/1/DevVarCharArray Duration: 0 msec Output argument(s) : array length: 2 [0] 65 'A' [1] 66 'B'
Normally : A = 10 B = 11
See the sample .
DeviceProxy deviceProxy = new DeviceProxy("tango/tangotest/1"); DeviceData arginData = new DeviceData(); deviceProxy.command_inout(commandName,arginData); arginData.insert(new byte[]{0xA,0xB}); result = deviceProxy.command_inout("DevVarCharArray",arginData); byte[] resultByte = result.extractByteArray();
for (int i = 0; i < resultByte.length; i++) System.out.println("["+i+"]=" + resultByte[i]);
The result is OK : [0]=10 [1]=11
Reported by: katyho ( http://sf.net/u/katyho )
Original Ticket: "tango-cs/bugs/155":https://sourceforge.net/p/tango-cs/bugs/155