Skip to content

Instantly share code, notes, and snippets.

@coburnw
Last active July 11, 2019 13:01
Show Gist options
  • Save coburnw/57634c7e821dd7f32e9a68e1d14c16a4 to your computer and use it in GitHub Desktop.
Save coburnw/57634c7e821dd7f32e9a68e1d14c16a4 to your computer and use it in GitHub Desktop.
Installing Third Party Drivers in Python-IVI

Third party drivers in Python-IVI

A possible method to install a third party (unsupported) driver in Python-IVI

Installation synopsis

  • Clone the new driver repository
  • Copy the new driver files into a local directory in the Python-IVI tree
  • Adjust __init__.py files accordingly
  • rebuild and reinstall python-ivi

Installation steps

  • git clone https://github.com/coburnw/driver-ivi.git to a directory of your choice. For me it was the parent folder containing the python-ivi clone folder.
  • if it doesnt already exist, mkdir python-ivi/ivi/local The local folder will contain any found drivers, or copies of drivers you may want to modify for your test bench.
  • cp driver-ivi.git/contrib/driver*.py to python-ivi/ivi/local folder
  • edit python-ivi/ivi/local/__init__.py to add the new driver
  • edit python-ivi/ivi/__init__.py and verify/add 'local' in the __all__ list of folders
  • edit python-ivi/setup.py and verify/add 'local' in the IVI list of Packages
  • python python-ivi/setup.py install to (re)build and (re)install python-ivi
  • explore the new driver's example folder

Notes

  • developed on an E2050A gpib/ethernet bridge. Other devices and options untested.
  • if any of the driver files are modified (third party or otherwise), python-ivi will need to be rebuilt and reinstalled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment