8000 Fix large data transfer using USBTMC by 2xB · Pull Request #490 · pyvisa/pyvisa-py · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix large data transfer using USBTMC #490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ PyVISA-py Changelog
- add support for VI_ATTR_SUPPRESS_END_EN for USB resources PR #449
- support open_timeout for TCPIP hislip resources PR #430
- fix serial flow control configuration PR #483
- Fix large data transfer using USBTMC PR #490

0.7.2 (07/03/2024)
------------------
Expand Down
4 changes: 2 additions & 2 deletions pyvisa_py/protocols/usbtmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,9 @@ def write(self, data):
self._btag = (self._btag % 255) + 1

eom = end >= size
data = BulkOutMessage.build_array(self._btag, eom, data[begin:end])
chunk = BulkOutMessage.build_array(self._btag, eom, data[begin:end])

bytes_sent += raw_write(data)
bytes_sent += raw_write(chunk)

return size

Expand Down
0