EasyManua.ls Logo

Agilent Technologies E7401A

Agilent Technologies E7401A
349 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...
Chapter 3 137
Programming Examples
Using Limit Lines
/* For the analyzers having frequency limits >= 3GHz, prompt the user*/
/* to connect the amplitude reference output to the input*/
printf ("Connect AMPTD REF OUT to the INPUT \n");
printf ("......Press Return to continue \n");
scanf( "%c",&cEnter);
/*Externally route the 50MHz Signal*/
viPrintf(viESA,"CAL:SOUR:STAT ON \n");
}
}
void printResult()
{
viQueryf(viESA, "CALC:CLIM:FAIL?\n", "%ld", &lLimitTest);
if (lLimitTest!=0)
{
printf ("\n\t..Limit Line Failed.....\n");
viQueryf(viESA, "CALC:LLINE1:FAIL?\n", "%ld", &lLimitTest);
if (lLimitTest==0)
printf ("\n\t......Limit Line1 Passed \n");
else printf ("\n\t......Limit Line1 Failed \n");
viQueryf(viESA, "CALC:LLINE2:FAIL?\n", "%ld", &lLimitTest);
if (lLimitTest==0)
printf ("\n\t......Limit Line2 Passed \n");
else printf ("\n\t......Limit Line2 Failed \n");
}
else
printf ("\n\t..Limit Test Pass\n");
}
void main()
{
/*Program Variable*/
ViStatus viStatus = 0;
long lOpc =0L;
/* Open a GPIB session at address 18*/
viStatus=viOpenDefaultRM(&defaultRM);
viStatus=viOpen(defaultRM,"GPIB0::18",VI_NULL,VI_NULL,&viESA);
if(viStatus)
{
printf("Could not open a session to GPIB device at address 18!\n");
exit(0);
}

Table of Contents

Other manuals for Agilent Technologies E7401A

Related product manuals