GPIB server

Specifications and requirements Installation instructions
The GPIB server supplied by DTU eEnergy is intended to handle all communicaitons wetween user applications and actual GPIB intraface cards and connected devices.
The GPIB server handles request through a tcp-IP socket interface maning communicaiton between applications and hardware simple.
Two versions of the gpib server exists. One version is implemented in C and is to be used if the GPIB driver supplied by National Instruments is to be used. The other version i to be used in combination with the linux_gpib open source GPIB driver distrbuted by Below is a list of requirements (for both versions)
  • A Linux type operating system. Only tested with CentOS-6 and later, but will likely work on other Linux type system as well.
  • The Perl (R) interpreter version 5.8.8 or later.
  • The Perl IO::Interface::Simple module.
  • Gnu 'make' Other 'make' packages than the one from Gnu may also work, but has not been tested.
  • A GPIB interface card
  1. If running CentOS 7, download this script and run it to install needed liberaies not automatically included in a default CentOS 7 installation
  2. If using the GPIB driver supplied by National instruments, download gpib_socket-2.11.tgz
    1. Install the National Instruments GPIB driver (version ni4882-2.90f0 or later), refer to National Instruments for instructions, may need a system reboot
    2. as root run 'updatedb'
    3. untar gpib_socket_*.tgz and cd into the created gpib_socket_server directory
    4. run ./ followed by make
    5. if make runs without errors, as root run 'make install'
  3. If using the linux_gpib driver from, download linux_gpib_socket-0.1.0.tgz
    1. install the linux_gpib driver and verify that the GPIB card can be accessed
    2. untar linux_gpib_socket_*.tgz and cd into the created linux_gpib_socket_server directory
    3. run make
    4. if make runs without errors, as root run 'make install'
    5. In some cases it may be nescesarry to run the /usr/local/sbin/gpib_config program after each reboot before the linux_gpib driver loads correctly. If so, simply add the folowing line to /usr/local/bin/start_servers:
  4. Make sure that the /usr/local/bin/start_servers script is automatically run upon system reboot.

Copyright © Søren Koch, DTU Energy at Technical University of Denmark