Agilent Technologies Model A.08.xx Water Dispenser User Manual


 
170 Chapter 3
Programming Examples
Measuring Harmonic Distortion (RS-232)
/* - Reset VISA timeout to 3 seconds */
/* - Set units to dBm */
/* UNIT:POW DBM */
/* - Take a sweep and wait for sweep completion */
/* INIT:IMM; */
/* *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 */
/* Set marker amplitude in volts */
/* UNIT:POW V */