Agilent Technologies 89400 Series Command Reference Manual page 486

Table of Contents

Advertisement

Appendix B
Sockets Example Program
/*
*****************************************************************************
*
*
$Description:
*
*
$Examples: $
*
*
Query the center frequency:
*
lanio 15.8.99.200 'freq:cent?'
*
*
Select Vector instrument mode:
*
lanio koala3.lsid.hp.com 'INST VECT'
*
*
Turn averaging on, wait for the average, move mkr to peak and query x pos:
*
lanio hp89440 'AVER:STAT ON; :abort;*wai; :calc:mark:max; x?'
*
*****************************************************************************
*
* To compile on hpux:
*
cc -Aa -o lanio lanio.c
*
*/
#define _HPUX_SOURCE
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
476
Functions to talk to an HP89410/440/441 via TCP/IP $
/* for fprintf and NULL
/* for memcpy and memset */
/* for strerror
/* for connect and socket*/
/* for sockaddr_in
/* for gethostbyname
*/
*/
*/
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

89400-90039

Table of Contents