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

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

Advertisement

/*Route50MHzSignal();
/*Display the program heading */
printf("\n\t\t Limit Lines Program \n\n" );
/*Set to Frequency Domain Mode*/
viPrintf(viESA,"CALC:LLINE1:CONT:DOM FREQ\n");
/*Delete any current limit line and define the upper limit line
to have the following frequency/amplitude pairs*/
viPrintf(viESA,"CALC:LLINE1:TYPE UPP\n");
/* Turn on display*/
viPrintf(viESA,"CALC:LLINE1:DISP ON\n");
/*Send the upper limit line data*/
viPrintf(viESA,"CALC:LLINE1:DATA 40E06,-50,1, 45E06,-20,1, 50E06,-15,1,
55E06,-20,1, 60E06,-50,1\n");
/* Turn on display*/
viPrintf(viESA,"CALC:LLINE1:DISP ON\n");
/*Delete any current limit line and define the lower limit line
to have the following frequency/amplitude pairs*/
viPrintf(viESA,"CALC:LLINE2:TYPE LOW\n");
/*Send the lower limit line data*/
viPrintf(viESA,"CALC:LLINE2:DATA
40E06,-100,1,49.99E06,-100,1,50E06,-30,1,50.01E06,-100,1,60E06,-100,1\n");
/* Turn on display*/
viPrintf(viESA,"CALC:LLINE2:DISP ON\n");
/*Turn the limit line test function on.*/
viPrintf(viESA,"CALC:LLINE2:STAT ON\n");
/*Set the analyzer to a center frequency of 50 MHz, span to 20 MHz,
and resolution bandwidth to 1 MHz.*/
viPrintf(viESA,"SENS:FREQ:CENT 50e6\n");
viPrintf(viESA,"SENS:FREQ:SPAN 20e6\n");
viPrintf(viESA,"SENS:BWID:RES 1e6\n");
/*Set the analyzer reference level to 0 dBm*/
viPrintf(viESA,"DISP:WIND:TRAC:Y:SCAL:RLEV 0 \n");
/* Check for the instrument model number and route the 50MHz-signal accordingly*/
Chapter 3
Programming Examples
Using Limit Lines
3-47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents