Skip to content

Commit

Permalink
Speed up large transfers over GPIB
Browse files Browse the repository at this point in the history
Reading one byte at a time from linux-gpib can be very slow. This change
passes the read count directly to linux-gpib, making large transfers
much faster.
  • Loading branch information
Luke Duncan authored and hgrecco committed Aug 22, 2016
1 parent 9fea9d5 commit 2beb52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvisa-py/gpib.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def read(self, count):
# 0x2000 = 8192 = END
checker = lambda current: self.interface.ibsta() & 8192

reader = lambda: self.interface.read(1)
reader = lambda: self.interface.read(count)

return self._read(reader, count, checker, False, None, False, gpib.GpibError)

Expand Down

0 comments on commit 2beb52a

Please sign in to comment.