While trying to talk to my FY6600 connected to an USB serial port over pyvisa proxy, my code hangs completely on instr.write_raw(…).
import pyvisa
rm = pyvisa.ResourceManager("<server>:5000@proxy")
instr = rm.open_resource("ASRL/dev/ttyUSB0::INSTR",baud_rate=115200,write_termination='\n',read_termination='\n')
mode = 0
if mode == 0:
instr.query("UMO") # Works
if mode == 1:
instr.write("UMO") # Also works
instr.read()
if mode == 2:
instr.raw_write(b"UMO\n") # Stalls here, no timeout
instr.read()
The same code works locally on the proxy server where the instrument is connected.
While trying to talk to my FY6600 connected to an USB serial port over pyvisa proxy, my code hangs completely on
instr.write_raw(…).The same code works locally on the proxy server where the instrument is connected.