Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa not parsing correctly

Thank you very much for your quick response. I’m sorry you had to buy the cable to make the connection. I’ve seen that cable, and it looks like a normal female-to-female serial cable, though I’m not sure if it's crossed or pin-to-pin. But it must do something for it to work for you. I have made significant progress using a conversion table between bytes and expected ASCII. So far, it works for me, but I don’t know if it will change between different devices or if I stop using the serial cable with the USB adapter. Here’s my conversion table:

 

conversion_dict_hex = { '0x6': '0', '0x67': '1', '0x33': '2', '0x66': '3', '0x19': '4', '0x65': '5', '0x32': '6', '0x64': '7', '0xc': '8', '0x63': '9', '0x69': 'x', '0x56': 'S', '0x58': 'O', '0x4': 'p', '0xb': 'H', '0x2b': 'R', '0x3': ' ', '0x35': '*', '0x61': '=' }

0 Kudos
Message 11 of 11
(59 Views)