EasyManua.ls Logo

Keysight N9320B - Page 60

Keysight N9320B
176 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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);

Table of Contents

Other manuals for Keysight N9320B

Related product manuals