2-38 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Driver Function Reference
hp4156b_setSwitch
channel Channel number of the sweep source. 1 to 6 (SMU1 to SMU6),
21 (VSU1), or 22 (VSU2).
mode Source output mode. 1 (current, only for SMU) or 2 (voltage).
Set 1 if the hp4156b_setIv or hp4156b_setPiv function sets the
current output mode. Or, set 2 if the function sets the voltage
output mode.
range Output ranging mode. 0 (auto) or positive value (limited auto).
start Sweep start value (in A or V).
stop Sweep stop value (in A or V).
comp Compliance value (in V or A). It must be voltage for the current
sweep source, or current for the voltage sweep source.
Compliance polarity is automatically set to the same polarity as
the output value, regardless of the specified comp polarity. The
compliance polarity is positive if the output value is 0.
p_comp Power compliance. Available values are listed below. If you
enter the other value, the power compliance is not set.
0.001 to 2.0 VA (for 4155/4156 and MPSMU in 41501)
0.001 to 14.0 VA (for HPSMU in 41501)
Setting resolution: 0.001 VA
NOTE range, start, stop, comp parameters
Available values depend on the unit. See “Parameters” on page 2-6.
Sweep type, linear or log, is set by the hp4156b_setIv or hp4156b_setPiv function.
If the function sets the log sweep, start and stop must be the same polarity.
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( ).