Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 2-65
Driver Function Reference
hpe5250a_func
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. 1, 2, 4, 8, 16, 32, 64, 128 or others.
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), or
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).
hpe5250a_init
This function initializes the software connection to the instrument and optionally
verifies that instrument is in the system. In addition, it may perform any necessary
actions to place the instrument in its reset state.
If the hpe5250a_init function encounters an error, then the value of the vi output
parameter will be VI_NULL.
Syntax ViStatus _VI_FUNC hpe5250a_init(ViRsrc InstrDesc, ViBoolean id_query,
ViBoolean do_reset, ViPSession vi);
Parameters InstrDesc Instrument description. Examples; GPIB0::1::INSTR.
id_query VI_TRUE (to perform In-System Verification), or
VI_FALSE (do not perform In-System Verification).
do_reset VI_TRUE (to perform reset operation), or
VI_FALSE (do not perform reset operation).