Helpful Hint - National Instruments GPIB-PCII Getting Started

Hide thumbs Also See for GPIB-PCII:
Table of Contents

Advertisement

Writing an Advanced Program Using NI-488.2 Routines
printf ( "ibsta=&H%x ", ibsta, "< ");
if (ibsta & ERR ) printf (" ERR");
if (ibsta & TIMO) printf (" TIMO");
if (ibsta & END ) printf (" END");
if (ibsta & SRQI) printf (" SRQI");
if (ibsta & RQS ) printf (" RQS");
if (ibsta & CMPL) printf (" CMPL");
if (ibsta & LOK ) printf (" LOK");
if (ibsta & REM ) printf (" REM");
if (ibsta & CIC ) printf (" CIC");
if (ibsta & ATN ) printf (" ATN");
if (ibsta & TACS) printf (" TACS");
if (ibsta & LACS) printf (" LACS");
if (ibsta & DTAS) printf (" DTAS");
if (ibsta & DCAS) printf (" DCAS");
printf (">\n");
printf ("iberr= %d", iberr);
if (iberr == EDVR) printf (" EDVR <DOS Error>\n");
if (iberr == ECIC) printf (" ECIC <Not CIC>\n");
if (iberr == ENOL) printf (" ENOL <No Listener>\n");
if (iberr == EADR) printf (" EADR <Address error>\n");
if (iberr == EARG) printf (" EARG <Invalid argument>\n");
if (iberr == ESAC) printf (" ESAC <Not Sys Ctrlr>\n");
if (iberr == EABO) printf (" EABO <Op. aborted>\n");
if (iberr == ENEB) printf (" ENEB <No GPIB board>\n");
if (iberr == EOIP) printf (" EOIP <Async I/O in prg>\n");
if (iberr == ECAP) printf (" ECAP <No capability>\n");
if (iberr == EFSO) printf (" EFSO <File sys. error>\n");
if (iberr == EBUS) printf (" EBUS <Command error>\n");
if (iberr == ESTB) printf (" ESTB <Status byte lost>\n");
if (iberr == ESRQ) printf (" ESRQ <SRQ stuck on>\n");
if (iberr == ETAB) printf (" ETAB <Table Overflow>\n");
printf ("ibcnt= %d\n", ibcntl);
printf ("\n");
}

Helpful Hint

Now that your software and hardware are installed and you have used some NI-
488.2 routines, read the NI-488.2 MS-DOS Software Reference Manual for a
description of all of the NI-488.2 routines available for the
GPIB-PCII/IIA. After reading about these functions and their capabilities,
practice using them with your programmable instrument or device in an
interactive environment using the IBIC program described in Chapter 6 of the
NI-488.2 MS-DOS Software Reference Manual.
PCII/IIA and NI-488.2 MS-DOS
3-16
© National Instruments Corp.
Chapter 3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gpib-pciia181065-01181065-02

Table of Contents