Using Limit Lines - Agilent Technologies ESA-E Series Programmer's Manual

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

Advertisement

Programming Examples

Using Limit Lines

Using Limit Lines

/************************************************************/
/* Using Limit Lines
/*
/* This C programming example does the following.
/* The SCPI instrument commands used are given as
/* reference.
/*
/*
/* - Open an HP-IB session at address 18.
/* - Clear the analyzer.
/*
*CLR
/* - Reset the analyzer.
/*
*RST
/* - Define the upper limit line to have frequency/
/*
amplitude pairs.
/*
CALC:LLINE1:CONT:DOM FREQ
/*
CALC:LLINE1:TYPE UPP
/*
CALC:LLINE1:DISP ON
/*
CALC:LLINE1:DATA freq1,amp1,1,freq2,amp2,1...
/* - Define the lower limit line to have frequency/amplitude*/
/*
pairs.
/*
CALC:LLINE2:CONT:DOM FREQ
/*
CALC:LLINE2:TYPE LOW
/*
CALC:LLINE2:DISP ON
/*
CALC:LLINE2:DATA freq1,amp1,1,freq2,amp2,1...
/* - Turn the limit line test function on.
/*
CALC:LLINE2:STAT ON
/* - Set the analyzer to a center frequency of 50 MHz, span */
/*
to 20 MHz, and resolution bandwidth to 1 MHz.
/*
SENS:FREQ:SPAN 20 MHZ
/*
SENS:FREQ:CENT 50 MHZ
/*
SENS:BWID:RES 1 MHZ
/* - Turn the limit line test function on.
/* - Set the analyzer reference level to 0 dBm.
/*
DISP:WIND:TRAC:Y:SCAL:RLEV 0
/* - Set the input port to the 50 MHz amplitude reference.
/*
CAL:SOUR:STAT ON
/* - Check to see if limit line passes or fails.
/*
pass.
/*
CALC:LLINE:FAIL?
/* - Pause for 5 seconds.
/* - Deactivate the 50 MHz alignment signal.
3-44
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
It should */
*/
*/
*/
*/
Chapter 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents