Agilent Technologies ESA-E Series Programmer's Manual page 119

Esa spectrum analyzers
Hide thumbs Also See for ESA-E Series:
Table of Contents

Advertisement

Programming Examples
Status Register-Determine When a Measurement is Don e
while ((lCount2++ < 100) && (iSrqOccurred
=0) )
{
YIELD ;
}
}
printf("\n") ;
}
/*Set the input port to 50MHz amplitude reference* /
void Route50MHzSignal( )
{
viQueryf(viESA, "*IDN?\n", " %t", &cIdBuff) ;
iResult = (strncmp( cIdBuff, hpESA IDN_E4401B, strlen(hpESA IDN E4401B)) & &
strncmp( cIdBuff, hpESA IDN E4411B, strlen(hpESA IDN E4411B))) ;
if( iResult = 0 )
{
/*Set the input port to the 50MHz amplitude reference for the models* /
/*E4411B and E4401B* /
viPrintf(viESA,"CAL :SOUR :STAT ON \n") ;
/* 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") ;
}
}
/*Interrupt handler,trigger event handler * /
ViStatus _VI_FUNCH mySrgHdlr(ViSession viESA, ViEventType eventType, ViEvent
ctx,ViAddr userHdlr )
{
ViUInt16 iStatusByte ;
/* Make sure it is an SRQ event, ignore if stray event* /
if (eventType! =VI EVENT SERVICE REQ )
{
printf ("\n Stray event type0x%lx\n",eventType) ;
Chapter 3
3-59

Advertisement

Table of Contents
loading

Table of Contents