4
LAN, USB, and GPIB Interfaces
Communicating Over the LAN Interface
The device address used to send commands and receive data using the
LAN interface is located in the Remote Setup dialog box (accessed by
choosing Utilities > Remote Setup... from the Infiniium oscilloscope
application's main menu) as shown below.
Figure 1
The following C example program shows how to communicate with the
oscilloscope using the LAN interface and the Agilent Standard Instrument
Control Library (SICL).
#include <sicl.h>
#define BUFFER_SIZE 1024
main()
{
INST Bus;
int reason;
unsigned long actualcnt;
char buffer[ BUFFER_SIZE ];
94
Remote Setup Dialog Box
/* Open the LAN interface */
Bus = iopen( "lan[130.29.71.143]:hpib7,7" );
if( Bus != 0 ) {
/* Bus timeout set to 20 seconds */
itimeout( Bus, 20000 );
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference