Skip to content

Refactor for newer releases of python and pyvisa - #2

Open
battlecoder wants to merge 1 commit into
charkster:masterfrom
battlecoder:fixes
Open

Refactor for newer releases of python and pyvisa#2
battlecoder wants to merge 1 commit into
charkster:masterfrom
battlecoder:fixes

Conversation

@battlecoder

Copy link
Copy Markdown

(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