Ibsta() or ibsta Status Bit Values
All calls update a global status function, Ibsta, which contains information about the state of the GPIB and your GPIB hardware. You can examine various status bits in Ibsta and use that information to make decisions about continued processing. If you check for possible errors after each call using the Ibsta ERR bit, debugging your application is much easier. When using the GPIB32 API, ibsta is the global variable.
Each bit in Ibsta can be set for device-level traditional NI-488.2 calls (dev), board-level traditional NI-488.2 calls and multi-device NI-488.2 calls (brd), or all (dev, brd). Ibsta is a 32-bit value. A bit value of one (1) indicates that a certain condition is in effect. A bit value of zero (0) indicates that the condition is not in effect.
Mnemonic | Bit | Hex | Type | Description |
ERR | 15 | 8000 | dev, brd | NI-488.2 error |
TIMO | 14 | 4000 | dev, brd | Time limit exceeded |
END | 13 | 2000 | dev, brd | END or EOS detected |
SRQI | 12 | 1000 | brd | SRQ interrupt received |
RQS | 11 | 800 | dev | Device requesting service |
CMPL | 8 | 100 | dev, brd | I/O completed |
LOK | 7 | 80 | brd | Lockout State |
REM | 6 | 40 | brd | Remote State |
CIC | 5 | 20 | brd | Controller-In-Charge |
ATN | 4 | 10 | brd | Attention is asserted |
TACS | 3 | 8 | brd | Talker |
LACS | 2 | 4 | brd | Listener |
DTAS | 1 | 2 | brd | Device Trigger State |
DCAS | 0 | 1 | brd | Device Clear State |