2-64 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Driver Function Reference
hpe5250a_errorQueryDetect
sending an invalid sequence of coupled commands. Instrument errors can be
detected by polling. Automatic polling can be accomplished by using the
hpe5250a_errorQueryDetect function.
Syntax ViStatus _VI_FUNC hpe5250a_error_query(ViSession vi, ViPInt32 error_number,
ViChar _VI_FAR error_message[ ]);
Parameters vi Instrument handle returned from hpe5250a_init( ).
error_number Instrument’s error code.
error_message[ ] Instrument’s error message. This is limited to 256 characters.
hpe5250a_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 hpe5250a_errorQueryDetect(ViSession vi,
ViBoolean errorQueryDetect);
Parameters vi Instrument handle returned from hpe5250a_init( ).
errorQueryDetect Error checking enable (VI_TRUE) or disable (VI_FALSE).
hpe5250a_errorQueryDetect_Q
This function indicates if automatic instrument error detection is enabled or
disabled.
Syntax ViStatus _VI_FUNC hpe5250a_errorQueryDetect_Q(ViSession vi,
ViPBoolean pErrDetect);
Parameters vi Instrument handle returned from hpe5250a_init( ).
pErrDetect Error checking enable (VI_TRUE) or disable (VI_FALSE).
hpe5250a_esr_Q
This function returns the contents of the ESR register. The driver returns the
equivalent messages.