Agilent 4155B/4156B VXIplug&play Driver User’s Guide, Edition 4
2-67
Driver Functions
hpe5250a_esr_Q
hpe5250a_esr_Q
This function returns the contents of the ESR register. The driver returns the
equivalent messages (see Parameters).
Syntax
ViStatus _VI_FUNC hpe5250a_esr_Q(ViSession vi, ViChar _VI_FAR errstr[ ] );
Parameters
vi
Instrument handle returned from hpe5250a_init( ).
errstr[ ]
Response from instrument.
Bit Value
Message
1
“ESR_OPC”
2
“ESR_RQL”
4
“ESR_QYE_ERROR”
8
“ESR_DEVICE_DEPENDENT_ERROR”
16
“ESR_EXECUTION_ERROR”
32
“ESR_COMMAND_ERROR”
64
“ESR_URQ”
128
“ESR_PON”
OTHERS
“ESR_MULTI_EVENT”
hpe5250a_func
This function is used to set the channel configuration to the auto configuration mode
or the normal configuration mode.
Syntax
ViStatus _VI_FUNC hpe5250a_func(ViSession vi, ViInt16 channel_config);
Parameters
vi
Instrument handle returned from hpe5250a_init( ).
channel_config
Configuration mode. 0 (auto) or 1 (normal).