Programming Examples
WCA230A & WCA280A Programmer Manual
4- 13
// Wait for the specified event
void
GpibWait(int wait)
{
ibwait(GpibDevice, wait | TIMO);
if (ibsta & (ERR | TIMO))
{
GpibError("ibwait Error:");
}
GpibStatus = ibsta;
}
// Display error message by ibsta
void
GpibError(char *errorMessage)
{
fprintf (stderr, "%s\n", errorMessage);
fprintf (stderr, "ibsta=(%X)h <", ibsta);
if (ibsta & ERR ) fprintf (stderr, " ERR");
if (ibsta & TIMO) fprintf (stderr, " TIMO");
if (ibsta & END ) fprintf (stderr, " END");
if (ibsta & SRQI) fprintf (stderr, " SRQI");
if (ibsta & RQS ) fprintf (stderr, " RQS");
if (ibsta & CMPL) fprintf (stderr, " CMPL");
if (ibsta & LOK ) fprintf (stderr, " LOK");
if (ibsta & REM ) fprintf (stderr, " REM");
if (ibsta & CIC ) fprintf (stderr, " CIC");
if (ibsta & ATN ) fprintf (stderr, " ATN");
if (ibsta & TACS) fprintf (stderr, " TACS");
if (ibsta & LACS) fprintf (stderr, " LACS");
if (ibsta & DTAS) fprintf (stderr, " DTAS");
if (ibsta & DCAS) fprintf (stderr, " DCAS");
fprintf (stderr, " >\n");
fprintf (stderr, "iberr= %d", iberr);
Summary of Contents for WCA230A
Page 13: ...Getting Started...
Page 14: ......
Page 24: ...Getting Started 1 10 WCA230A WCA280A Programmer Manual...
Page 25: ...Syntax and Commands...
Page 26: ......
Page 92: ...CALCulate Commands 2 66 WCA230A WCA280A Programmer Manual...
Page 100: ...CALibration Commands 2 74 WCA230A WCA280A Programmer Manual...
Page 114: ...CONFigure Commands 2 88 WCA230A WCA280A Programmer Manual...
Page 270: ...DISPlay Commands 2 244 WCA230A WCA280A Programmer Manual...
Page 320: ...FETCh Commands 2 294 WCA230A WCA280A Programmer Manual...
Page 326: ...HCOPy Commands 2 300 WCA230A WCA280A Programmer Manual...
Page 330: ...INITiate Commands 2 304 WCA230A WCA280A Programmer Manual...
Page 350: ...MMEMory Commands 2 324 WCA230A WCA280A Programmer Manual...
Page 356: ...PROGram Commands 2 330 WCA230A WCA280A Programmer Manual...
Page 396: ...READ Commands 2 370 WCA230A WCA280A Programmer Manual...
Page 554: ...SENSe Commands 2 528 WCA230A WCA280A Programmer Manual...
Page 562: ...STATus Commands 2 536 WCA230A WCA280A Programmer Manual...
Page 572: ...SYSTem Commands 2 546 WCA230A WCA280A Programmer Manual...
Page 578: ...TRACe Commands 2 552 WCA230A WCA280A Programmer Manual...
Page 594: ...TRIGger Commands 2 568 WCA230A WCA280A Programmer Manual...
Page 598: ...Retrieving Response Message 2 572 WCA230A WCA280A Programmer Manual...
Page 599: ...Status and Events...
Page 600: ......
Page 616: ...Status and Events 3 16 WCA230A WCA280A Programmer Manual...
Page 623: ...Programming Examples...
Page 624: ......
Page 641: ...Appendices...
Page 642: ......
Page 660: ...Appendix C Factory Initialization Settings C 12 WCA230A WCA280A Programmer Manual...
Page 668: ...Appendix E SCPI Conformance Information E 4 WCA230A WCA280A Programmer Manual...
Page 669: ...Glossary and Index...
Page 670: ......
Page 672: ...Glossary Glossary 2 WCA230A WCA280A Programmer Manual...
Page 676: ...Index Index 4 WCA230A WCA280A Programmer Manual...
Page 677: ......
Page 678: ......