-
-
Notifications
You must be signed in to change notification settings - Fork 253
Prologix support for both USB and ethernet versions #887
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor thing to address but LGTM otherwise.
8facbfd
to
3bc227b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #887 +/- ##
==========================================
+ Coverage 79.54% 79.62% +0.08%
==========================================
Files 27 27
Lines 5378 5400 +22
Branches 335 335
==========================================
+ Hits 4278 4300 +22
Misses 1077 1077
Partials 23 23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Very nice. Quick test however, it doesn't seem to like the 'INTFC' suffix ; I must be missing something ? :
pyvisa-info output: (cropped)
|
You need to upgrade pyvisa-py to 0.8.0 |
Support added for Prologix GPIB adapters, both USB and ethernet. Examples of usage:
import pyvisa
rm = pyvisa.ResourceManager()
prlgx = rm.open_resource("PRLGX-TCPIP::169.254.1.80::INTFC")
instr = rm.open_resource("GPIB::17::INSTR")
instr.query("*IDN?")
Or for USB version:
import pyvisa
rm = pyvisa.ResourceManager()
prlgx = rm.open_resource("PRLGX-ASRL::/dev/cu.usbserialXXX::INTFC")
instr = rm.open_resource("GPIB::17::INSTR")
instr.query("*IDN?")
ruff check . && ruff format -c . --check
with no errors