Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 2-43
Driver Function Reference
hp4156b_sweepMiv
Example
ViSession vi;
ViStatus ret;
ViInt32 sch = 1;
/* SMU1 for sweep channel */
ViInt32 mch = 2;
/* SMU2 for measurement channel */
ViInt32 sm = 1;
/* sweep mode: voltage-single-linear */
ViInt32 om = 2;
/* output mode: voltage */
ViReal64 or = 0;
/* output range: auto */
ViReal64 v1 = 0;
/* start voltage */
ViReal64 v2 = 1.5;
/* stop voltage */
ViInt32 pts = 11;
/* point */
ViReal64 th = 0.01;
/* hold time */
ViReal64 td = 0.001;
/* delay time */
ViReal64 ts = 0.001;
/* step delay time */
ViReal64 icomp = 0.1; /* current compliance */
ViReal64 pcomp = 0.2; /* power compliance */
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_setSwitch(vi, sch, 1);
ret = hp4156b_setSwitch(vi, mch, 1);
ret = hp4156b_force(vi, mch, om, or, v1, icomp, 0);
ret = hp4156b_setIv(vi, sch, sm, or, v1, v2, pts, th, td, ts,
icomp, pcomp);
ret = hp4156b_sweepIv(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[n]: Measurement data (current).
st[n]: Status for the md[n] data.
where, n = 0 to 10 (integer).
hp4156b_sweepMiv
This function executes a multi channel staircase sweep measurement by the
specified channels, 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 to set the sweep
source. Also, execute the hp4156b_setSweepSync function to set the synchronous
sweep source.
Summary of Contents for 4155C
Page 3: ......
Page 13: ...1 Installation...
Page 19: ...2 Driver Function Reference...
Page 89: ...3 Programming Examples for Visual Basic Users...
Page 147: ...4 Programming Examples for Visual Basic NET Users...
Page 183: ...5 Programming Examples for C Users...
Page 225: ...6 Programming Examples for VEE Users...