
November 1985
National Instruments
Status represents a combination of GPIB-MAC
conditions. Internally in the GPIB-MAC, status is
stored as a
integer. Each bit in the integer
represents a single condition. A bit value of 1 indicates
that the corresponding condition is in effect; a bit value
of zero indicates that the condition is not in effect. Since
more than one GPIB-MAC condition may exist at one
time, more than one bit may be set in status. The highest
order bit of status, also called the sign bit, is set when
the GPIB-MAC detects either a GPIB error or a serial
port error. Consequently, when status is negative, an
error condition exists, and when status is positive, no
error condition exists.
gpib-error represents a single GPIB error condition
present.
serial-error represents a single serial error condition
present.
count is the number of bytes transferred over the GPIB
by the last rd, wrt, or cmd function.
GPIB STATUS CONDITIONS
Numeric
Symbolic
Bit Value (n) Value (s) Description
15
32768
14
16384
13
8192
12
4096
11
2048
10
1024
9
512
8
256
7
128
ERR
SRQI
LOK
Error detected
Timeout
EOI or EOS detected
SRQ detected while
Reserved
Reserved
Reserved
Operation completed
Lockout state
76
SECTION FOUR FUNCTIONS