OE-FET / keithley2600

Python driver for Keithley 2600 series instruments.
https://keithley2600.readthedocs.io
MIT License
43 stars 17 forks source link

Visa backend configuration for Windows #14

Closed ozumana closed 4 years ago

ozumana commented 4 years ago

Hi @SamSchott, This is not an issue, but a usage noob question... How do I go about setting up the backend visa configuration for windows (Win10, Python 3.8)? I am seeking to use the NI visa library already installed in my system. Cheers, G

samschott commented 4 years ago

Hi @ozumana,

This is a valid question and currently not well documented.

You can pass a keyword argument visa_library to the Keithley2600 constructor to specify the backend. For example:

from  keithley2600 import Keithley2600
k = Keithley2600('TCPIP0::192.168.2.121::INSTR', visa_library='path/to/library')

It defaults to using the PyVISA-py backend, selected by visa_library='@py'. But if you pass an empty string, it will use an installed IVI library (such as NI-VISA) if it can find one in standard locations and fall back to PyVISA-py otherwise.

You can find more information about selecting the backend in the PyVISA docs.

Hope this helps, Sam

ozumana commented 4 years ago

Brilliant @SamSchott ! Thanks!