Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 2-39
Driver Function Reference
hp4156b_setVm
channel Channel number of the unit. 0 (all channels), 1 to 6 (SMU1 to
SMU6), 21 (VSU1), 22 (VSU2), 23 (VMU1), 24 (VMU2), 26
(GNDU), 27 (PGU1) or 28 (PGU2).
state Output switch setting. 0 (off) or 1 (on).
hp4156b_setVm
This function sets VMU1 and VMU2 to the normal mode that can use two VMUs
individually or the differential voltage measurement mode that uses two VMUs to
measure voltage between two terminals.
Syntax ViStatus _VI_FUNC hp4156b_setVm(ViSession vi, ViInt32 mode);
Parameters vi Instrument handle returned from hp4156b_init( ).
mode Measurement mode. 1 (normal) or 2 (differential).
hp4156b_spotMeas
This function executes a high speed spot measurement by the specified channel, and
returns the measured value and the measurement status.
Syntax ViStatus _VI_FUNC hp4156b_spotMeas(ViSession vi, ViInt32 channel,
ViInt32 mode, ViReal64 range, ViPReal64 value, ViPInt32 status);
Parameters vi Instrument handle returned from hp4156b_init( ).
channel Channel number of the measurement unit. 1 to 6 (SMU1 to
SMU6), 23 (VMU1), or 24 (VMU2).
mode Measurement mode. 1 (current, only for SMU) or 2 (voltage).
range Measurement ranging mode. 0 (auto), positive value (limited
auto), or negative value (fixed range). For the available values,
see Table 2-2 and Table 2-5 or Table 2-7.
value Measurement data. Returned data.
status Measurement status. Returned data. For the status value, see
“Status Code” on page 2-12.