Technical data

Programming Examples 3
Agilent N8211A/N8212A Performance Upconverter Synthetic Instrument Module, 250 kHz to 20 / 40 GHz 63
Figure 5 Program Output Screen
Queries for Lan Using Sockets
lanio.c and getopt.c perform the following functions:
establishes TCP/IP connection to port 5025
resultant file descriptor is used to “talk” to the instrument using regular socket I/O
mechanisms
maps the desired hostname to an internal form
error checks
queries N8211A/N8212A for ID
sets frequency on N8211A/N8212A to 2.5 GHz
sets power on N8211A/N8212A to –5 dBm
gets option letter from argument vector and checks for end of file (EOF)
The following programming examples are available on the N8211A/N8212A
Documentation CD-ROM as lanio.c and getopt.c.
/***************************************************************************
* $Header: lanio.c 04/24/01
* $Revision: 1.1 $
* $Date: 10/24/01
* PROGRAM NAME: lanio.c
*
* $Description: Functions to talk to an Agilent N8211A/N8212A