How do I check for errors in my NI-488.2 application?

If a call failed with an error, the ERR bit is set in Ibsta. The Iberr value describes the GPIB error that occurred. To check for a GPIB error, use the following statement after each NI-488.2 call:

if (Ibsta() & ERR)

printf("GPIB error %d encountered", Iberr());


shortcut Return to Frequently Asked Questions about Application Development