Agilent 4155B/4156B VXIplug&play Driver User’s Guide, Edition 4
2-25
Driver Functions
hp4156b_opc_Q
hp4156b_opc_Q
This function does the *OPC? common command.
Syntax
ViStatus _VI_FUNC hp4156b_opc_Q(ViSession vi, ViPBoolean result);
Parameters
vi
Instrument handle returned from hp4156b_init( ).
result
VI_TRUE (Operation complete), or
VI_FALSE (Operation is pending).
hp4156b_readData
This function reads and returns the source setup data or the data measured by the
hp4156b_startMeasure function.
Syntax
ViStatus _VI_FUNC hp4156b_readData(ViSession vi, ViPInt32 eod,
ViPInt32 data_type, ViPReal64 value, ViPInt32 status, ViPInt32 channel);
Parameters
vi
Instrument handle returned from hp4156b_init( ).
eod
End of data flag. 0 (not end of data), or 1 (end of data).
data_type
Data type of the value. 0 (Voltage setup data),
1 (Current setup data), 3 (Time setup data),
8 (Voltage measurement data), 9 (Current measurement data),
11 (Time measurement data), 14 (Sampling index data), or
15 (Stress status data).
value
Measurement data or source setup data.
status
Measurement status or source status.
channel
Channel number of the unit for measurement or output.
1 to 6 (SMU1 to SMU6), 21 (VSU1), 22 (VSU2), 23 (VMU1),
24 (VMU2), 27 (PGU1) or 28 (PGU2).