Waiting for GPIB Conditions
You can use the ibwait function to obtain the current Ibsta value or to suspend your application until a specified condition occurs on the GPIB. If you use ibwait with a parameter of zero, it immediately updates Ibsta and returns. If you want to use ibwait to wait for one or more events to occur, pass a wait mask to the function. The wait mask should always include the TIMO event; otherwise, your application is suspended indefinitely until one of the wait mask events occurs.
You can also wait for GPIB conditions asynchronously. For more information, refer to the Asynchronous Event Notification topic.