tango-controls / jive

Jive is a standalone JAVA application designed to browse and edit the static TANGO database. jive moved to https://gitlab.com/tango-controls/jive
10 stars 6 forks source link

Result of a DevVarCharArray command in tangotest #31

Closed tango-controls-bot closed 7 years ago

tango-controls-bot commented 16 years ago

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

tango-controls-bot commented 16 years ago

Original comment by: katyho (http://sourceforge.net/u/katyho)

tango-controls-bot commented 16 years ago

Original comment by: JeanLucPons (http://sourceforge.net/u/jlpons)

tango-controls-bot commented 16 years ago

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)