I am using Ignition 7.9.4, which uses Jython 2.5.
I have an old Agilent VISA/SCPI device I want to talk to. I don’t know the name of the device and want to display a list of connected devices/instruments to the user to select from. After the user selects an instrument, I want to connect to it and start sending out VISA/SCPI commands to it.
Ideally, I would like to use PyVisa; however, an attempt to import this resulted in an error about unicode_literals not being available from the future module. I tried updating this future module to include unicode_literals, using the latest version of future from the latest version of jython, but no luck.
Does anyone know how to get PyVisa working?
If no one knows how to get PyVisa working in Jython, what about sockets?
There is an example of someone using sockets here.
…but they already know the name of the device and I need to find a list of connected devices for the user to pick from.
If there are any other options, please suggest them.