Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3 2-77
Driver Functions
agb1500_sweepPiv
Example ViSession vi;
ViStatus ret;
ViInt32 pch = 1; /* SMU1 for pulse sweep source */
ret = agb1500_setSwitch(vi, pch, 1);
ViInt32 sm = 1; /* sweep mode: voltage-single-linear mode */
ViReal64 or = 0; /* output range: auto */
ViReal64 v0 = 0; /* pulse base voltage */
ViReal64 v1 = 0; /* pulse sweep start voltage */
ViReal64 v2 = 10; /* pulse sweep stop voltage */
ViInt32 pts = 11; /* number of sweep steps */
ViReal64 th = 0; /* hold time */
ViReal64 tw = 0.001; /* pulse width */
ViReal64 tp = 0.01; /* pulse period */
ViReal64 ic = 0.05; /* sweep source current compliance */
ret = agb1500_setPiv(vi, pch, sm, or, v0, v1, v2, pts, th, tw, tp,
ic);
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 */
ViInt32 tm[11]; /* time stamp data */
ret = agb1500_resetTimestamp(vi);
ret = agb1500_sweepPiv(vi, pch, mm, mr, &mpts, &sc[0], &md[0],
&st[0], &tm[0]);
For the above example, the array variables sc[], md[], st[], and tm[] will contain the
following data.
sc[n]: Sweep source setup data (voltage).
md[n]: Measurement data (current).
st[n]: Status for the md[n] data.
tm[n]: Time stamp data (measurement start time) for the md[n] data.
where, n = 0 to 10 (integer).