Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 2-45
Driver Function Reference
hp4156b_sweepPbias
mm[0] = 1; /* current mode for mch[0] */
mm[1] = 1; /* current mode for mch[1] */
mr[0] = 0; /* auto range for mch[0] */
mr[1] = 0; /* auto range for mch[1] */
ViInt32 mpts; /* number of measurement steps */
ViReal64 sc[11]; /* source data */
ViReal64 md[22]; /* measurement data */
ViInt32 st[22]; /* status */
ret = hp4156b_sweepMiv(vi, mch, mm, mr, &mpts, &sc[0], &md[0],
&st[0]);
For the above example, the array variables sc[], md[], and st[] will contain the
following data.
sc[n]: Sweep source setup data (voltage).
md[2*n]: Data (current) measured by the mch[0] channel.
md[2*n+1]: Data (current) measured by the mch[1] channel.
st[2*n]: Status for the md[2*n] data.
st[2*n+1]: Status for the md[2*n+1] data.
where, n = 0 to 10 (integer).
hp4156b_sweepPbias
This function executes a staircase sweep with pulsed bias measurement by the
specified channel, and returns the number of measurement steps, sweep source data,
measurement data, and the measurement status.
Before executing this function, execute the hp4156b_setIv function and the
hp4156b_setPbias function to set the staircase sweep source and the pulsed bias
source respectively. Also, execute the hp4156b_setSweepSync function to set the
synchronous sweep source.
Syntax ViStatus _VI_FUNC hp4156b_sweepPbias(ViSession vi, ViInt32 channel,
ViInt32 mode, ViReal64 range, ViPInt32 point, ViReal64 source[ ],
ViReal64 value[ ], ViInt32 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).