2-22 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Driver Function Reference
hp4156b_errorQueryDetect
error_number Instrument’s error code. Returned data.
error_message[ ] Instrument’s error message. Returned data. Up to 256
characters.
hp4156b_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 hp4156b_errorQueryDetect(ViSession vi,
ViBoolean errorQueryDetect);
Parameters vi Instrument handle returned from hp4156b_init( ).
errorQueryDetect Error checking enable (VI_TRUE) or disable (VI_FALSE).
hp4156b_errorQueryDetect_Q
This function indicates if automatic instrument error detection is enabled or
disabled.
Syntax ViStatus _VI_FUNC hp4156b_errorQueryDetect_Q(ViSession vi,
ViPBoolean pErrDetect);
Parameters vi Instrument handle returned from hp4156b_init( ).
pErrDetect Error checking enable (VI_TRUE) or disable (VI_FALSE).
Returned data.
hp4156b_esr_Q
This function returns the contents of the ESR register. The driver returns the
equivalent messages.
Syntax ViStatus _VI_FUNC hp4156b_esr_Q(ViSession vi, ViChar _VI_FAR errstr[ ]);
Parameters vi Instrument handle returned from hp4156b_init( ).
errstr[ ] Response from instrument. 1 (ESR_OPC), 2 (ESR_RQL),
4 (ESR_QYE), 8 (ESR_DDE), 16 (ESR_EXE),
32 (ESR_CME), 64 (ESR_URQ), or 128 (ESR_PON).