GPIB server
Specifications and requirements
|
Installation instructions
|
---|
The GPIB server supplied by DTU Energy is intended to handle all communications between user applications and actual GPIB intraface cards and connected devices.
The GPIB server handles request through a tcp-IP socket interface making communication between applications and hardware simple.
Two versions of the gpib server exists.
Both are implemented in C and one is to be used if the GPIB driver supplied by National Instruments is to be used.
The other version is to be used in combination with the linux_gpib open source GPIB driver distrbuted by sourceforge.net.
A third option is to use serial communication and use the gpib_serial_emulator_server.
In this case no GPIB-card or driver is nescesarry as that server maps gpib comands to serial interfaces.
Note however, that this mode of operation requires the serial-socket-server-9.0.pl program supplied by RFCcontrol or Elchemea Data Aquisition in order to function properly!
Below is a list of requirements (for all three 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 (not required for gpib_serial_emulator_server)
|
- If using the GPIB driver supplied by National instruments, download gpib_socket-2.13.tgz. Please note that this version of the gpibserver is now deprecated and you should consider using the linux_gpib_socket server instead.
- If running CentOS 7, download this script and run it to install needed liberaies not automatically included in a default CentOS 7 installation
- Install the National Instruments GPIB driver (version ni4882-2.90f0 or later), refer to National Instruments for instructions, may need a system reboot
- as root run 'updatedb'
- untar gpib_socket_*.tgz and cd into the created gpib_socket_server directory
- run ./configure.pl followed by make
- if make runs without errors, as root run 'make install'
- If using the linux_gpib driver from linux-gpib.sourceforge.net/, download linux_gpib_socket-1.3.1.tgz. (earlier versions can be found here)
- install the linux_gpib driver and verify that the GPIB card can be accessed (you may need to run ldconfig after driver installation!)
- untar linux_gpib_socket_*.tgz and cd into the created linux_gpib_socket_server directory
- run make
- if make runs without errors, as root run 'make install'
- 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 before the line starting the gpibserver:
/usr/local/sbin/gpib_config
- If RS232 communication is to be used with a Keintley 2700 or 2750 scanning multimeter but existing configurations have been set up to use GPIB, the serial_gpib_socket-1.0.0.tgz package can be used. In that case the gpib_serial_emulator_server supplied by this package can be used to transparently map gpib-addresses to serial ports and forward normal gpibserver comands to the respective serial interfaces.
- untar serial_gpib_socket_*.tgz and cd into the created gpib_serial_emulator_server directory
- run make
- if make runs without errors, as root run 'make install'
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