1
0
Fork
You've already forked python-gpib
0
GPIB python bindings
  • C 77.4%
  • Python 20.2%
  • Makefile 2.4%
Find a file
2025年10月02日 15:45:36 +02:00
COPYING Add licensing info 2025年10月02日 15:45:36 +02:00
Gpib.py Gpib.py: Fix pyls warnings, indentation and whitespace 2025年10月02日 13:06:21 +02:00
gpibinter.c Apply patch for PY_SSIZE_T_CLEAN deprecation from mika 2021年10月26日 07:55:50 +00:00
gpibtest.py gpibtest.py: Clean up code 2025年10月02日 12:30:20 +02:00
Makefile Makefile: Convert to setuptools-only build 2025年10月02日 11:59:04 +02:00
pyproject.toml Add initial pyproject.toml 2025年10月02日 11:59:04 +02:00
README Add licensing info 2025年10月02日 15:45:36 +02:00
srq_board.py srq_board.py, sqr_device.py: Modernize 2025年10月02日 11:59:04 +02:00
srq_device.py srq_board.py, sqr_device.py: Modernize 2025年10月02日 11:59:04 +02:00

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>