©
National Instruments Corporation
C-1
C
Status and Error Message
Information
This appendix describes the status and error information that the
GPIB-232/485CT-A records as it executes each programming message.
This information is returned in response to the
stat
command, or
automatically after each command if continuous status reporting is enabled.
Status is recorded in four parts: the 16-bit status word (
status
), the GPIB
error indicator (
GPIB-error
), the serial error indicator (
serial-error
),
and a count of the last I/O performed (
count
). For more information, see
the
stat
function description for S mode or G mode.
Status Bits
The following paragraphs describe the conditions represented by the bits in
status. The number preceding each description is the numeric value of that
bit in the status word.
ERR
S or G mode
–32768
The ERR bit is set in
status
following any call that results
in an error. The particular error can be determined by
examining the
GPIB-error
and
serial-error
values. The
ERR bit is cleared following any call that does not result in an
error.
By examining this bit, you can check for an error condition
after each call. An error made early in your application
program might not become apparent until a later instruction.
At that time, the error can be more difficult to locate.
TIMO
S mode
16384
The TIMO bit specifies whether a timeout has occurred. The
TIMO bit is set in the status word following a call to
wait
if
the TIMO bit of the wait mask parameter is also set and if the
wait has exceeded the time limit value that is set by the
tmo
call. The TIMO bit is also set following a call to any of the I/O