Global variables, Iberr-the error variable, Ibcnt and ibcntl-count variables – Measurement Computing GPIB-488 User Manual
Page 13: Iberr—the error variable, Ibcnt and ibcntl—count variables

Chapter 2
Programming with the GPIB Library
2-4
GPIB-488
Global Variables
The following global variables are used in all programming languages:
ibsta
Status Word
iberr
Error Codes
ibcnt
,
ibcntl
Count Variables (short/long)
The
iberr
variables are briefly explained here. For additional information
about
iberr
, refer to Appendix C,
For additional information about
ibcnt
and
ibcntl
, refer to the routines
which return them.
iberr—The Error Variable
If a GPIB error occurs during a routine, its corresponding error code is
returned into the variable
iberr
. Possible error codes and their meanings
are listed in Appendix C,
.
ibcnt and ibcntl—Count Variables
These variables contain an integer which describes how many bytes were
actually transferred during a read or write operation.
ibcnt
is an integer
value (16-bits wide) and
ibcntl
is a long integer value (32-bits wide).