Agilent Technologies ESA-E Series Programmer's Manual page 147

Esa spectrum analyzers
Hide thumbs Also See for ESA-E Series:
Table of Contents

Advertisement

Programming Examples
Making Faster Measurements (multiple measurements )
Making Faster Measurements (multiple
measurements)
/************************************************************ /
/*
Making Faster Measurements (multiple measurements)
* /
/*
* /
/*
This C programming example does the following :
* /
/*
Performs Power Averaging of Multiple ESA Measurements
* /
/*
and Writes the Result back to a Trace for display
*/
/*
* /
/*
This program demonstrates a quick way to obtain
* /
/*
trace data from the analyzer . The ESA display
* /
/*
and the IF, Video, and Sweep ports are disabled to
*/
/*
improve trace data throughput . It also performs
* /
/*
computations on the trace data (a power average in this
*/
/*
case) and returns the result to the analyzer for display .* /
/*
* /
/* The example below uses the VISA library functions . The
* /
/*
speed will in most cases improve if written to use the
*/
/*
National Instruments IEEE-488 .2 library functions
* /
/*
instead of the VISA library functions .
* /
/*
* /
/*
This program uses the following commands found in ESA
*/
/*
firmware revisions A .04 .00 and later :
* /
/*
:SYST :PRES :TYPE FACT (sets ESA to factory preset)
* /
/*
:SYST :PORT :IFVS :ENAB OFF (improves speed)
* /
/*
:SWE :POINTS (sets number of sweep points, fewer
* /
/*
points improve speed)
* /
/*
The above commands may be omitted in ESAs with firmware
*/
/*
revisions prior to A .04 .00, but the speed may be
* /
/*
degraded slightly .
* /
/*
* /
/*
The associated SCPI instrument commands are given as
* /
/*
reference .
/ *
/* -
Opens a GPIB device at address 1 8
/* - Clears and Resets the Analyzer to a known stat e
/*
SYST :PRES :TYPE FACT
/*
*RST
/* -
Identify the Instrument mode l
/*
*IDN ?
/* -
Sets the analyzer center frequency and span
/*
SENS :FREQ :CENT freq
/*
SENS :FREQ :SPAN freq
Chapter 3
3-87

Advertisement

Table of Contents
loading

Table of Contents