Agilent 4155B/4156B VXIplug&play Driver User’s Guide, Edition 4
2-37
Driver Functions
hp4156b_setSwitch
hp4156b_setSwitch
This function sets the output switch of the specified channel.
Syntax
ViStatus _VI_FUNC hp4156b_setSwitch(ViSession vi, ViInt32 channel,
ViInt32 state);
Parameters
vi
Instrument handle returned from hp4156b_init( ).
channel
Channel number of the unit.
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 (output switch OFF) or 1 (output switch ON).
hp4156b_setVm
This function sets the VMU measurement mode.
Syntax
ViStatus _VI_FUNC hp4156b_setVm(ViSession vi, ViInt32 mode);
Parameters
vi
Instrument handle returned from hp4156b_init( ).
mode
VMU measurement mode.
1 (grounded mode) or 2 (differential mode).