Nov-17-2016, 07:43 PM
Hi, I'm trying to manually set a byte count for the read function in pyvisa (e.g. instr.read(), instr.read_raw()).
For LabVIEW users, this is the same as setting the "byte count" in the VISA Read Function (see LabVIEW Help: Visa Read Function). The tool I'm writing to is requiring me to set this to 1 byte. The same is true when I run my commands in NI MAX. If I don't set bytes to read as 1, I get timeout errors.
Does anyone know how to programmatically set this using pyVisa in python?
Thanks a ton
For LabVIEW users, this is the same as setting the "byte count" in the VISA Read Function (see LabVIEW Help: Visa Read Function). The tool I'm writing to is requiring me to set this to 1 byte. The same is true when I run my commands in NI MAX. If I don't set bytes to read as 1, I get timeout errors.
Does anyone know how to programmatically set this using pyVisa in python?
Thanks a ton