2-46 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Driver Function Reference
hp4156b_sweepPbias
range Measurement ranging mode. 0 (auto), positive value (limited
auto), or negative value (fixed range). For the available values,
see Table 2-2 and Table 2-5 or Table 2-7.
point Number of measurement steps. Returned data.
source[ ] Sweep source setup data. Returned data.
value[ ] Measurement data. Returned data.
status[ ] Measurement status. Returned data. For the status value, see
“Status Code” on page 2-12.
Example
ViSession vi;
ViStatus ret;
ViInt32 pch = 1; /* SMU1 for pulse source channel */
ret = hp4156b_setSwitch(vi, pch, 1);
ret = hp4156b_setFilter(vi, pch, 0);
ViInt32 om = 2; /* output mode: voltage */
ViReal64 or = 0; /* output range: auto */
ViReal64 th = 0; /* hold time */
ViReal64 tw = 0.001; /* pulse width */
ViReal64 tp = 0.01; /* pulse period */
ViReal64 v1 = 0; /* pulse base voltage */
ViReal64 v2 = 1.5; /* pulse peak voltage */
ViReal64 ic = 0.05; /* pulse source current compliance */
ret = hp4156b_setPbias(vi, pch, om, or, v1, v2, tw, tp, th, ic);
ViInt32 sch = 2; /* SMU2 for sweep source channel */
ViInt32 sm = 1; /* sweep mode: voltage-single-linear */
ViInt32 pts = 11; /* number of sweep steps */
ViReal64 td = 0; /* delay time */
ViReal64 ts = 0; /* step delay time */
ViReal64 s1 = 0; /* sweep start voltage */
ViReal64 s2 = 3; /* sweep stop voltage */
ViReal64 icomp = 0.1; /* sweep source current compliance */
ViReal64 pcomp = 0.5; /* sweep source power compliance */
ret = hp4156b_setSwitch(vi, sch, 1);
ret = hp4156b_setIv(vi, sch, sm, or, s1, s2, pts, th, td, ts,
icomp, pcomp);
ViInt32 mm = 1; /* measurement mode: current */
ViReal64 mr = 0; /* measurement range: auto */
ViInt32 mpts; /* number of measurement steps */
ViReal64 sc[11]; /* source data */
ViReal64 md[11]; /* measurement data */
ViInt32 st[11]; /* status */
ret = hp4156b_sweepPbias(vi, sch, 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).