Hi,
The only way an instrument can notify the controller of any event is using the SRQ line. Usually, the GPIB application sends the appropriate commands to the instrument and then can way for the instrument to assert the SRQ line.
The NI-488.2 driver has several functions that allows a program to detect and react to SRQs, like ibwait and ibnotify.
DiegoF.