After looking around a bit, I found that PyVisa has its own implementation of the VISA protocol. This means that it doesn’t need drivers and can operate without them, making PyVisa a viable option since it is pure python code; however, it uses C code - as you mentioned (DLL) - so it won’t work in Jython.
I did try getting JVisa into Ignition, but it didn’t work. Here were my steps:
- Download & extract from site: https://sourceforge.net/projects/jvisa/
- Go to folder: JVisa_and_JVisaOscilloscope _2.0\JVisa\lib\64bit
- Open command prompt in this directory and run: pack200 --gzip -E9 JnaVisa64.jar.pack.gz JnaVisa64.jar to create the jar.pack.gz file needed for Ignition
- Go to folder: C:\Program Files\Inductive Automation\Ignition\lib\core\common and paste both the JnaVisa64 jar and jar.pack.gz files
- Close any open designers.
- Restart Ignition Service: Go to services, right-click, restart. Wait for restart to finish.
- Open new designer, go to script console, and try: import jvisa. It says the library doesn’t exist.
What did I miss?