User`s guide
2-20 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 1
Driver Functions
hp4156b_force
hp4156b_force
This function specifies the dc current source (SMU) or dc voltage source (SMU,
VSU, or PGU), and forces the output immediately. To stop the output, use the
hp4156b_force function with 0 (zero) output.
Syntax ViStatus _VI_FUNC hp4156b_force(ViSession vi, ViInt32 channel, ViInt32 mode,
ViReal64 range, ViReal64 value, ViReal64 comp, ViInt32 polarity);
Parameters vi Instrument handle returned from hp4156b_init( ).
channel Channel number of the source unit.
1 to 6 (SMU1 to SMU6), 21 (VSU1), 22 (VSU2), 27 (PGU1),
or 28 (PGU2)
mode Output mode. 1 (current output, only for SMU) or 2 (voltage
output).
range Output range. 0 (auto ranging) or positive value (limited auto
ranging). See below.
For current output: 1E-11 to 1.0 A, or 0.
For voltage output: 2.0 to 200.0 V, or 0.
value Output value. -1.0 to 1.0 A for current output, -200.0 to 200.0 V
for SMU voltage output, -40 to 40 V for PGU dc voltage output,
-20 to 20 V for VSU output.
comp Compliance value (only for SMU). -200.0 V to 200.0 V for
voltage compliance, -1.0 to 1.0 A for current compliance.
polarity Compliance polarity (only for SMU). 0 (auto) or 1 (manual).
If you select 1, polarity is set to the same polarity as comp value
you enterd.