# Hardware Interrupts and Autopolling

If you disable the interrupts of the GPIB interface using the ibconfig function, the handler detects SRQ only during calls to the handler, and autopolling can occur only at the following events:

- During a device ibwait for RQS
- Immediately after a device function completes and prepares to return to the application program

If you enable hardware interrupts, the handler can respond to SRQI interrupts and perform autopolling even when the handler is not performing a function. However, the handler does not conduct an autopoll if any of the following conditions exist:

- The last GPIB call was a board call. The handler reinstates autopolling after a subsequent device call.
- GPIB I/O is in progress. In particular, during asynchronous GPIB I/O, autopolling does not occur until the asynchronous I/O completes.
- The stuck SRQ condition exists.
- You disabled autopolling by using ibconfig.