AGILENT E2050 LAN/GPIB Gateway
Overview
Agilent Technologies
The Agilent E2050 LAN/GPIB Gateway allows you to communicate with GPIB-based instruments over LAN from
your PC or Series 700 HP-UX controller. Series 300s and 400s are not supported.
The E2050 is a small box containing LAN and GPIB ports that contain enough intelligence to act as a network
"server" providing access to its GPIB port from other "clients" on the network. It is supported by SICL software on
all these platforms.
SICL by default also includes LAN/GPIB server software to allow a controller (a PC with Win95/98/Me/NT/2000
or an S700 controller) to act as a LAN gateway to GPIB. The LAN/GPIB Gateway software is similar to the E2050's
built-in server software (and in fact the E2050's server software is derived from it).
E2050 OVERVIEW
The E2050 and the LAN/GPIB gateway operate in a networked environment; an instrument controller acts as a
"client" on the LAN to access services provide by the E2050 or LAN/GPIB "servers":
+-----------+ +-----------+ +-----------+
| client | | client | | client |
| computer | | computer | | computer |
+-----+-----+ +-----+-----+ +-----+-----+
|||
LAN ---------+---+----------------+----------------+---+----------
||
+-------+-------+ +-----+-----+
| LAN/GPIB | | E2050 |
| Gateway | | GPIB/LAN |
| software | | Gateway |
+-------+-------+ +-----+-----+
| GPIB / RS-232 | GPIB
+-----------+-----------+ +------+------+
||| | |
+----+----+ +----+----+ +----+----+ +----+----+ +----+----+
| device | | device | | device | | device | | device |
+---------+ +---------+ +---------+ +---------+ +---------+
The client computer deals with the servers through the SICL LAN software. The operations are based on the
standard TCP/IP protocols and can be diagrammed as follows:
+-----------------+
| application |
+-----------------+
| SICL |
+-----------------+ +------------------------------+
| SICL LAN client | | SICL LAN server |
+-----------------+ +---------------+--------------+
| TCP | | TCP | |
+-----------------+ +---------------+ interface |
| IP | | IP | driver |
+-----------------+ +---------------+ | +-----------+
| LAN Interface | | LAN Interface | | | device(s) |
+--------+--------+ +-------+-------+-------+------+ +------+----+
||||
+--------------------+ +-----------------+
LAN GPIB
Once the software has been configured, however, a programmer does not need to be concerned with the fine details
of networking operation; he or she can open up a session with an instrument on the E2050 or LAN server software
by invoking an "iopen" call with the appropriate address. For example:
lan[instserv.agilent.com]:hpib,7 // Access GPIB device
lan[128.10.0.3]:hpib,3,2 // Access device with secondary address
lan[intserv]:iscpi,32 // Access register-based VXI card via ISCPI
For example, the following C program takes measurements through a VXI DVM and multiplexer attached to an
E2050 or LAN server software:
#include <sicl.h>
#include <stdio.h>
main()
{
INST dvm;
INST sw:
double res;
int i;
ionerror( I_ERROR_EXIT ); /* Print message & terminate on error. */
dvm = iopen( "lan[intserv]:hpib,9,3" ); /* Open DMM session. */
sw = iopen( "lan[intserv]:hpib,9,14" ); /* Open mux session. */
itimeout( dvm, 10000 ); /* Set timeouts. */
itimeout( sw, 10000 );
iprintf( sw, "TRIG:SOUR BUS\n" ); /* Set up trigger. */
iprintf( sw, "SCAN (@100:103)\n" ); /* Set up scan list. */
iprintf( sw, "INIT\n" ); /* Start scan. */
for( i=1; i<=4; i++ )
{
iprintf( dvm, "MEAS:VOLT:DC?\n" ); /* Get reading. */
iscanf( dvm, "%lf", &res );
printf( "Data = %f\n", res );
iprintf( dvm, "TRIG\n" ); /* Scan next channel. */