Table 3-1. Status Word (Ibsta) Layout - National Instruments NI-488.2M Software Reference Manual

For os/2
Hide thumbs Also See for NI-488.2M:
Table of Contents

Advertisement

Chapter 3
Table 3-1 shows the condition that each bit position represents, the mnemonic
representation of each bit, and the type of calls for which the bit is set. For a
detailed explanation of each of the status conditions, refer to Appendix A, Status
Word Conditions.
Mnemonic
ERR
TIMO
END
SRQI
RQS
CMPL
LOK
REM
CIC
ATN
TACS
LACS
DTAS
DCAS
The language header files included on your distribution disk contain the
mnemonic constants for ibsta. You can check a bit position in ibsta by
using its numeric value or its mnemonic constant. For example, bit position 15
(hex 8000) detects a GPIB error. The mnemonic for this bit is ERR. To check
for a GPIB error, use either of the following statements after each NI-488
function and NI-488.2 routine:
if (ibsta & ERR) gpiberr();
or
if (ibsta & 0x8000) gpiberr();
where gpiberr() is an error-handling routine that you have defined.
© National Instruments Corp.

Table 3-1. Status Word (ibsta) Layout

Bit
Hex
Pos.
Value
15
8000
14
4000
13
2000
12
1000
11
800
8
100
7
80
6
40
5
20
4
10
3
8
2
4
1
2
0
1
Developing Your Application
Type
dev, brd
dev, brd
dev, brd
brd
dev
dev, brd
brd
brd
brd
brd
brd
brd
brd
brd
3-5
NI-488.2M SRM for OS/2
Description
GPIB error
Time limit exceeded
END or EOS detected
SRQ interrupt received
Device requesting service
I/O completed
Lockout State
Remote State
Controller-In-Charge
Attention is asserted
Talker
Listener
Device Trigger State
Device Clear State

Advertisement

Table of Contents
loading

Table of Contents