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

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

Advertisement

Programming Examples
Making Faster Measurements (multiple measurements )
/* Turn auto align off to maximize measurement rat e
viPrintf(viESA, " :CAL :AUTO OFF\n") ;
/* set requested number of point s
viPrintf(viESA, " :SWE :POINTS %i\n", NUM POINTS) ;
printf("This program will measure and calculate\n") ;
printf ("the power average of %i %i-point
traces .\n",iNumTraces,iNumPoints) ;
/* Turn on 50 MHz amplitude reference signa l
viPrintf(viESA, " :CAL :SOUR :STAT ON\n") ;
/* route 50 MHz amptd ref to the input port of the spectrum analyzer
*/
/*
& set reference level appropriate to the amplitude reference level * /
switch (iModelNumber)
{
case 4401 : case 4411 :
{
viPrintf(viESA, " :DISP :WIND :TRAC :Y :RLEV -25 DBM\n") ;
break ;
}
case 4402 : case 4403 : case 4404 : case 4405 : case 4407 : case 4408 :
{
viPrintf(viESA,
ILi .7E iIi iL 1Ji LL' .Z
. .1 iLWL' V
-LV
LOLL \L l
printf ("\nConnect the calibrator output to the RF input .\n") ;
printf ("
Press <Enter> to continue \n") ;
scanf( "%c", &cBuffer) ;
break ;
}
default :
{
printf("\nNo E-series ESA
found . The program is exiting\n") ;
exit (1) ;
}
}
/* Single sweep mode
viPrintf(viESA, " :INIT :CONT OFF\n") ;
* /
/* Turn off the local display to maximize measurement rate
*/
if( :DISPLAY)
{
viPrintf(viESA, " :DISP :ENAB OFF\n") ;
}
/* transfer data in definite length,32 bit integer blocks . Selec t
/* machine units (milli-dBm) to maximize
measurement
rate
viPrintf(viESA, " :FORM :DATA INT,32\n" ) ;
* /
* /
Chapter 3
3-91

Advertisement

Table of Contents
loading

Table of Contents