Error codes, Table 4.2 - gpib error codes – National Instruments GPIB-PC User Manual

Page 67

Advertising
background image

GPIB-PC Functions — Overview

Section Four

GPIB-PC User Manual

4-6

©National Instruments Corp.

Error Codes

When the ERR bit is set in the status word, a GPIB error has occurred.
The error code is returned in the variable

IBERR

.

There are 14 possible error codes. Table 4.2 lists these codes, a
recommended mnemonic to be associated with that type of error, and
the numeric value of the code.

Table 4.2 - GPIB Error Codes

Suggested

Decimal

Explanation

Mnemonic

Value

EDVR

0

DOS error

ECIC

1

Function requires GPIB-PC to be CIC

ENOL

2

No Listener on write function

EADR

3

GPIB-PC not addressed correctly

EARG

4

Invalid argument to function call

ESAC

5

GPIB-PC not System Controller as required

EABO

6

I/O operation aborted

ENEB

7

Non-existent GPIB-PC board

EOIP

10

I/O started before previous operation

completed
ECAP

11

No capability for operation

EFSO

12

File system error

EBUS

14

Command error during device call

ESTB

15

Serial Poll status byte lost

ESRQ

16

SRQ stuck in ON position

A description of each error and some conditions under which it may
occur follows:

EDVR (0)

EDVR is returned by the language interface when the
device or board name passed in an

IBFIND

call is not

configured in the handler. In this case, the variable

IBCNT

will contain the DOS error code 2, "Device not found." The
remedy is to replace the argument to

IBFIND

with a valid

board or device name, or reconfigure the handler using the

IBCONF

utility to recognize the name.

Advertising