A possible method to install a third party (unsupported) driver in Python-IVI
- 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
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
topython-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 ofPackages
python python-ivi/setup.py install
to (re)build and (re)install python-ivi- explore the new driver's example folder
- 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