Python Forum

Full Version: Setting Byte Count in pyVisa Read Function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Smile