Handle Prologix USB to GPIB
See original GitHub issuePrologix sells a GPIB-USB Controller which does not handle transparently the connections to the instrument (i.e. it is not just a GPIB device as it needs some extra commands).
The proposal is to create a custom Resource that handles deals with the prologix device without requiring extra commands from the user.
PyVISA will:
- Provide a Resource Class based on
MessageBasedResource
that appears as an standard resource but internally does all the things that prologix needs. - Provide a prefix to indicate a custom resource name (For example
+
) - In
open_resource
, dispatch this custom prefix to a function that should instantiate the new ResourceClass and return it.
We should also patch other functions like:
resource_info
The idea is that something like this would just work
import visa
rm = visa.ResourceManager()
inst = rm.open_resource('+PROLOGIX::/dev/bla/bla::GPIB::2')
inst.query('*IDN?')
Issue Analytics
- State:
- Created 9 years ago
- Comments:40 (6 by maintainers)
Top Results From Across the Web
GPIB-USB CONTROLLER FAQ – Prologix Instruments
Prologix GPIB -USB controller provides a virtual serial interface to communicate with instruments, while handling all GPIB protocol details for you.
Read more >Prologix USB to Gpib Controller : Electronics - Amazon.com
No GPIB cable needed; controller plugs on to instrument. All software configuration. No DIP switches. Metal enclosure for durability and reduced EMI. USB...
Read more >Prologix GPIB-USB Controller - NI Community
Description: This vi handles all of the base FTDI chipset commands and will poll all of the GPIB Addresses to determine what instruments...
Read more >Prologix - GPIB-USB CONTROLLER - SGLabs
Prologix GPIB -USB controller provides a virtual serial interface to communicate with instruments, while handling all. GPIB protocol details for you.
Read more >Prologix GPIB USB Controller - eBay
Prologix GPIB USB Controller - Picture 1 of 2. Prologix GPIB USB Controller ... Includes 5 business days handling time after receipt of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a little follow up on the Prologix GPIBoE adapter. We’ve been using it in the company quite regularly now. I have recently got rid of the imho most annoying shortcoming: The lack of native read after write functionality. To circumvent this, I’ve created a little class
Prologix
which basically encapsulates theTCPIPSocket
class of pyvisa and extends the queries with a small decorator:That’s certainly not perfect, but it is practical and working. The only thing that is still ugly now is how to use
pyvisa.ResourceManager
with it (but a lot better than before):The
resource_pyclass
parameter is used to override the default class for this resource locator (TCPIP::___::SOCKET is handled with TCPIPSocket).Hope this helps.
It seems that there is a lot of interest in having pyvisa functional with Prologix GPIB controllers, and maybe there has been some development already made (since the original issue began 3 years ago and the thread has been idle for ~1 year). I recently acquired a GPIB-Ethernet controller and would also be willing to contribute and test.
I came across a Python wrapper for the Prologix GPIB-to-Ethernet adapter already implemented. Maybe there can be some collaboration between the developers? Again, I am willing to contribute what I can, but this would be awesome to have integrated into pyvisa (pyvisa-py).