Download Agilent Technologies 11970 Series Specifications
Transcript
PSA Programming Examples
Using C with Marker Peak Search and Peak Excursion Measurement
Routines
void main()
{
/*Program Variables*/
ViStatus viStatus
= 0;
char cEnter = 0;
int
iResult = 0;
double dMarkerFreq = 0;
double dMarkerAmpl = 0;
float fPeakExcursion =0;
long lOpc = 0L;
char *psaSetup =
// PSA setup initialization
":INST SA;"
"*RST;*CLS;"
// Change to Spectrum Analysis mode
// Reset the device and clear status
":SENS:FREQ:CENT 50 MHz;"// Set center freq to 50 MHz
":SENS:FREQ:SPAN 50 MHz;"// Set freq span to 50 MHz
":SENS:FEED AREF;"// Set input port to internal 50 MHz ref
":INIT:CONT 0;"// Set analyzer to single sweep mode
PSA Programming Examples
":CALC:MARK:PEAK:THR -90";// Set the peak thresold to -90 dBm
/*Open a GPIB session at address 18.*/
viStatus=viOpenDefaultRM(&defaultRM);
viStatus=viOpen(defaultRM,"GPIB0::18",VI_NULL,VI_NULL,&viPSA);
if(viStatus)
{
printf("Could not open a session to GPIB device at address 18!\n");
exit(0);
}
/*Display the program heading */
printf("\n\t\t Marker Program \n\n" );
/* Send setup commands to instrument */
viPrintf(viPSA,"%s\n",psaSetup);
Chapter 18
281
Related documents
Agilent Technologies Model A.08.xx Water Dispenser User Manual
Agilent Technologies E4406A VSA Satellite Radio User Manual
Agilent Technologies N9320A Technical data
Agilent Technologies N9344C Technical data
SERVICE MANUAL
Agilent Technologies 11970 Series User`s guide
Agilent Technologies E1401-90493 User's Manual
HP E4402B User's Manual
User`s/Programmer`s Reference Volume 1, Core
SN437 User Manual IC-1064-200 ps Nd-VAN, LP, SYNC