Skip to content
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

Refactor for newer releases of python and pyvisa #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

battlecoder
Copy link

(First, thank you so much for writing this library)
Fixed a few things so it works with the Python 3.9 and pyVisa 1.13
Changes are as follow:

  • Fixed several print statements that had no parentheses. They are mandatory in Python 3
  • Fixed illegal concat of string and byte in one of the print statements
  • rigol_ds1054z constructor now receives the instrument resource name as a parameter. This allows the library script to remain unchanged and potentially control multiple devices at once (not tested)
  • Updated reference to "visa". Now it's pyvisa

Also updated constructor to receive the resource name as parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant