Gpib

Linux Gpib Howto in Gentoo
linux-gpib with python flags is using python 2.7

Installing linux-gpib
First set use flags in :

Add line for python bindings and Documentation:

Other possible Flags pcmcia static debug guile perl php tcl firmware. If you want to use pcmia you need to have a 2.7 kernel. But pcmia  is normally just used in old computers so it doesn't matter.

Install it with:

Add your user to gpib group

Configuring linux-gpib
To configure Linux GPIB you need first to create a config file at :

Just an example which is for NI USB- HS Adapter is:

You can lookup the board_type at Linux-gpib-Website.

There is an example config file with more parameters on GPIB-Linux Website.

After you wrote your own config file, you have to plug in your GPIB Device and either first chgrp the gpib Devices in and make them write and readable:

or do all things as root.

After doing that you should be able to call with root

0 is the device you plugged in.

Example Python
Be carefull linux-gpib cames with python2.7 bindings so first start python2.7

This example is tested with a HP8720D

To import gpib:

To get a device of a board named in joe:

0 is the GPIB BOARD and 16 the Adress of the Listener To write a command:

To read the result:

1000 is the Number of byte that are read