2-24 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Driver Function Reference
hp4156b_forcePulse
Syntax ViStatus _VI_FUNC hp4156b_force(ViSession vi, ViInt32 channel, ViInt32 mode,
ViReal64 range, ViReal64 value, ViReal64 comp, ViInt32 polarity);
NOTE range, value, comp parameters
Available values depend on the unit. See “Parameters” on page 2-6.
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 Source output mode. 1 (current, only for SMU) or 2 (voltage).
range Output ranging mode. 0 (auto) or positive value (limited auto).
value Source output value (in A or V).
comp Compliance value (in V or A). It must be voltage for the current
source, or current for the voltage source.
polarity Compliance polarity (only for SMU). 0 (auto) or 1 (manual).
If polarity=0, the compliance polarity is automatically set to the
same polarity as value, regardless of the specified comp
polarity. The compliance polarity is positive if value=0.
If polarity=1, the specified comp polarity is kept.
hp4156b_forcePulse
This function specifies pulse voltage source and forces the specified pulse
immediately. To stop the pulse output, use hp4156b_abortMeasure function.
Syntax ViStatus _VI_FUNC hp4156b_forcePulse(ViSession vi, ViInt32 channel,
ViInt32 count, ViReal64 base, ViReal64 peak, ViReal64 width, ViReal64 period,
ViReal64 delay, ViReal64 rise, ViReal64 fall);
Parameters vi Instrument handle returned from hp4156b_init( ).
channel Channel number of the pulse source. 27 (PGU1) or 28 (PGU2).
count Pulse count (number of pulses, 1 to 65535) or 0 (pulse output
free run mode).
base Pulse base value (in V). See Table 2-8.
peak Pulse peak value (in V). See Table 2-8.