My app register callbacks for two events IO_COMPLETION and SERVICE_REQ (two viInstallHandler calls one after other). This perfectly works with the old version GPIB version 1. and VISA 2.1 but do not work with VISA 2.6.1 and GPIB driver NI488 2.2.1.
However, if my application only registers for IO_COMPLETION, the call back function is triggered after viWrite for command "*IDN?\n".
What needs to be done if both of the events to trigger the callbacks in a session?