Skip to content

write_raw stalls forever #22

@pipatron

Description

@pipatron

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions