![Krohn-Hite 3945 Скачать руководство пользователя страница 41](http://html1.mh-extra.com/html/krohn-hite/3945/3945_operating-manual_2004086041.webp)
{
{ EDVR, “ EDVR <DOS Error>\n”],
{ ECIC, “ ECIC <Not CIC>\n”},
{ ENOL;. “ ENOL <No Listener>\n”},
{ EADR, “ EADR <Address error>\n”},
{ EARG, “ EARG <Invalid argument>\n”},
{ ESAC, “ ESAC <Not Sys Ctrlr>\n”},
{ EABO, “ EABO <Op. aborted>n”},
{ ENEB, “ ENEB <No GPIB board>\n”},
{ EOIP, “ EOIP <Async I/O in prg>\n”},
{ ECAP, “ ECAP <No capability>\n”},
{ EFSO, “ EFSO <File sys> error>\n”},
{ EBUS, “ EBUS <Command error>\n”},
{ ESTB, “ ESTB <Status bye lost>\n”},
{ ESRQ, “ ESRQ <SRQ stuck on >\n”},
{ ETAB, “ ETAB <Table Overflow>\n”};
printf (“%s\n:, msg); /* Print the application supplied context message. */
/*
*
The ibsta variable provides the primary information about the cause o
*
the error: print it’s value and mnemonic for each bit set.
*/
printf (“ibsta = &H%X <”, ibsta);
for (i=0; i<=15; i++)
{ if (ibsta & ibstaMsg[i].bit) printf (“%s”,ibstaMsg[i].msg); };
printf (“ .\n”);
/*
*
Print the iberr value and interpertation
*/
printf (“iberr = %d, iberr);
for (i=0; i<=14; i++)
{ if (iberr==iberrMsg[i].val) printf (“%s”, iberrMsg[i].msg); };
/*
*
Print ibcnt in decimal
*/
printf (“ibcnt = %d\n”, ibcnt);
printf (“\n)’
/*
put the board and device offline */
ibonl (GpibDev, 0); /* Release the device handle (/
ibonl (GpibBoard, 0); /* Release the board handle */
exit (1); /* exit the status=1 to indicate error */
}
Section 3 - GPIB Programming
3-16
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com