Agilent Technologies N9340B Programmer's Manual page 55

Spectrum analyzer
Table of Contents

Advertisement

ViSession defaultRM, viN9340B;
ViStatus errStatus;
ViChar cIdBuff[256]= {0};
char cEnter = 0;
int iResult = 0;
/*Set the input port to 50 MHz amplitude reference*/
void Route50MHzSignal()
{
}
void main()
{
pen(defaultRM,"USB0::2391::8472::0000000000::0::INSTR",VI_NULL,VI_N
ULL,&viN9340B);
N9340B Programmer's Guide
viQueryf(viN9340B, "*IDN?\n", "%t", &cIdBuff);
/* prompt the user*/
/* to connect the amplitude reference output to the input*/
printf ("Connect CAL OUT to the RF IN \n");
printf ("......Press Return to continue \n");
scanf( "%c",&cEnter);
/*Externally route the 50 MHz Signal*/
viPrintf(viN9340B,"CAL:SOUR:STAT ON \n");
/*Program Variables*/
ViStatus viStatus = 0;
double dMarkAmp =0.0;
/*Open a USB session*/
viStatus=viOpenDefaultRM(&defaultRM);
viStatus=viO-
if(viStatus)
{
printf("Could not open a session to USB device!\n");
exit(0);
}
/*Clear the Instrument*/
viClear(viN9340B);
Programming Example
4
49

Advertisement

Table of Contents
loading

Table of Contents