Keysight N9320B Programmer's Manual page 60

Spectrum analyzer
Hide thumbs Also See for N9320B:
Table of Contents

Advertisement

Programming Example
Using Marker Delta Mode and Marker Minimum Search
54
/* Open an USB session*/
viStatus=viOpenDefaultRM(&defaultRM);
viSta-
tus=viOpen(defaultRM,"USB0::2391::8472::9876543210::0::INSTR",VI
_NULL,VI_NULL,&viN9320B);
if(viStatus)
printf("Could not open a session to USB device!\n");
exit(0);
}
/*Clear the instrument*/
viClear(viN9320B);
/*Reset the instrument*/
viPrintf(viN9320B,"*RST\n");
/*Display the program heading */
printf("\n\t\t Marker Delta Program \n\n" );
/*Check for the instrument model number and route the 50MHz
signal accordingly*/
Route50MHzSignal();
/*Set the analyzer to single sweep mode*/
viPrintf(viN9320B,"INIT:CONT 0\n");
/*Prompt the user for the start frequency*/
printf("\t Enter the Start frequency in MHz ");
/*The user enters the start frequency*/
scanf("%lf",&dStartFreq);
/*Prompt the user for the stop frequency*/
printf("\t Enter the Stop frequency in MHz ");
/*The user enters the stop frequency*/
scanf("%lf",&dStopFreq);

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents