GPIB python bindings
- C 77.4%
- Python 20.2%
- Makefile 2.4%
| COPYING | Add licensing info | |
| Gpib.py | Gpib.py: Fix pyls warnings, indentation and whitespace | |
| gpibinter.c | Apply patch for PY_SSIZE_T_CLEAN deprecation from mika | |
| gpibtest.py | gpibtest.py: Clean up code | |
| Makefile | Makefile: Convert to setuptools-only build | |
| pyproject.toml | Add initial pyproject.toml | |
| README | Add licensing info | |
| srq_board.py | srq_board.py, sqr_device.py: Modernize | |
| srq_device.py | srq_board.py, sqr_device.py: Modernize | |
This is a python GPIB interface to use gpib library calls from python language.
Currently, no documentation or examples.
Installation:
'make' then 'make install'
To use the GPIB extension directly the call syntax is similar as in the C library:
##
# Include the GPIB extension
##
import gpib
##
# find & initialize the device
##
device = gpib.find("my_device")
##
# write a string to the device
##
gpib.write(device,"A Command_String")
##
# write a binary string to the device
##
gpib.writebin(device,"A Command_String",16)
##
# read a 25 byte string
##
result = gpib.read(device,25)
print 'the result is: ' + result
##
# read a binary string
##
result = gpib.readbin(device,4096) #length of result equals ibcnt
To use the Gpib Class module, see gpibtest.py.
License:
GPL-2+
© 2002-2011 Frank Mori Hess <fmhess@user.sourceforge.net>
© 2011-2025 Dave Penkler <dpenkler@gmail.com>
© 2025 Matthias Geiger <werdahias@debian.org>