EasyManuals Logo

Agilent Technologies EMC Series Programmer's Guide

Agilent Technologies EMC Series
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
Page #137 background imageLoading...
Page #137 background image
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 EMC Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies EMC Series and is the answer not in the manual?

Agilent Technologies EMC Series Specifications

General IconGeneral
BrandAgilent Technologies
ModelEMC Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals