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

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

Advertisement

Programming Examples
Measuring Harmonic Distortion (HP-IB)
/*
CALC:MARK:TRCK:STAT OFF
/* - Reset VISA timeout to 3 seconds
/* - Set units to dBm
/*
UNIT:POW DBM
/* - Take a sweep
/*
INIT:IMM
/* - Check for operation complete
/*
*OPC?
/* - Perform the peak search
/*
CALC:MARK:MAX
/* - Read the marker amplitude,this is the fundamental Level*/
/*
CALC:MARK:Y?
/* - Change the amplitude units to volts
/*
UNIT:POW V
/* - Take a sweep
/*
INIT:IMM
/* - Check for operation complete
/*
*OPC?
/* - Read the marker amplitude in volts, this is the
/*
fundamental amplitude in volts.
/*
CALC:MARK:Y?
/* - Read the marker frequency
/*
CALC:MARK:X?
/* - Measure each harmonic amplitude as follows:
/*
Set the span to 20 MHz
/*
SENS:FREQ:SPAN 20 MHZ
/*
Set the center frequency to the desired harmonic
/*
SENS:FREQ:CENT <freq>
/*
Take a sweep and wait for operation complete
/*
INIT:IMM
/*
*OPC?
/*
Perform peak search
/*
CALC:MARK:MAX
/*
Set VISA timeout to 60 seconds
/*
Activate signal track
/*
CALC:MARK:TRCK:STAT ON
/*
Zoom down to a 100 kHz span
/*
SENS:FREQ:SPAN 10E4
/*
Take a sweep and wait for operation complete
/*
INIT:IMM
/*
*OPC?
/*
Signal track off
/*
CALC:MARK:TRCK:STAT OFF
/*
Reset VISA timeout to 3 seconds
/*
Perform Peak Search
/*
CALC:MARK:MAX
3-70
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents