HP ESA-E Series Programmer's Manual page 127

Esa spectrum analyzers
Table of Contents

Advertisement

#define
YIELD Sleep(10)
ViSession defaultRM, viESA;
ViStatus
errStatus;
ViChar
cIdBuff[256] = {0};
char
cEnter =0;
int
iResult =0;
int
iSrqOccurred = 0;
char
cBuf[3]={0};
/*Wait until SRQ is generated and for the handler to be
called. Print something while waiting. When interrupt occurs
it will be handled by interrupt handler*/
void WaitForSRQ()
{
long
lCount = 0L;
iSrqOccurred
printf ("\t\nWaiting for an SRQ to be generated ...");
for (lCount =0;(lCount<10) && (iSrqOccurred
lCount++)
{
long lCount2 =0;
printf(".");
while ((lCount2++ < 100) && (iSrqOccurred
{
YIELD;
}
}
printf("\n");
}
/*Set the input port to the 50 MHz amplitude reference*/
void Route50MHzSignal()
{
Chapter 3
Determine if an Error has Occurred
=0;
Programming Examples
==0);
==0))
3-63

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents