pyvisa / pyvisa-py

A pure python PyVISA backend
https://pyvisa-py.readthedocs.io
MIT License
282 stars 120 forks source link

Clean up and fix a nasty bug in tcpip instr session. #126

Closed MatthieuDartiailh closed 6 years ago

MatthieuDartiailh commented 6 years ago

The term char was incorrectly converted, which lead to read incomplete messages. Also optimize some routines to use bytearray and some general pep 8 formatting, and prevent a hard fail if one instrument connected in USB is not properly configured (can happen on windows with the wrong driver installed)

@skrchnavy if you have time to review it would be nice. This fixes the issue I have seen in #120 .

MatthieuDartiailh commented 6 years ago

Merging this is really an improvement.

bors r+

bors[bot] commented 6 years ago

Build succeeded