Agb220xa_errorquerydetect, Agb220xa_errorquerydetect_q, Agb220xa_esr_q – Agilent Technologies Agilent B2201A User Manual
Page 205

Agilent B2200 User’s Guide, Edition 4
6-19
VXIplug&play Driver
Driver Functions
Instrument errors may occur when you places the instrument in a bad state such as
sending an invalid sequence of coupled commands. Instrument errors can be
detected by polling. Automatic polling can be accomplished by using the
agb220xa_errorQueryDetect function.
Syntax
ViStatus _VI_FUNC agb220xa_error_query(ViSession vi, ViPInt32 error_number,
ViChar_VI_FAR error_message[ ] );
Parameters
vi
Instrument handle returned from agb220xa_init( ).
error_number
Instrument’s error code.
error_message[ ] Instrument’s error message. This is limited to 256 characters.
agb220xa_errorQueryDetect
This function enables or disables automatic instrument error checking.
If automatic error checking is enabled then the driver will query the instrument for
an error at the end of each function call.
Syntax
ViStatus _VI_FUNC agb220xa_errorQueryDetect(ViSession vi,
ViBoolean errorQueryDetect);
Parameters
vi
Instrument handle returned from agb220xa_init( ).
errorQueryDetect Error checking enable (VI_TRUE) or disable (VI_FALSE).
agb220xa_errorQueryDetect_Q
This function indicates if automatic instrument error detection is enabled or
disabled.
Syntax
ViStatus _VI_FUNC agb220xa_errorQueryDetect_Q(ViSession vi,
ViPBoolean pErrDetect);
Parameters
vi
Instrument handle returned from agb220xa_init( ).
pErrDetect
Error checking enable (VI_TRUE) or disable (VI_FALSE).
agb220xa_esr_Q
This function returns the contents of the ESR register. The driver returns the
equivalent messages (see Parameters).