Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3 2-69
Driver Functions
agb1500_sweepCv
Example ViSession vi;
ViStatus ret;
ViInt32 ch = 9; /* MFCMU */
ViReal64 freq = 1E6; /* frequency */
ViReal64 acv = 0.05; /* oscillator level */
ViInt32 om= 1; /* sweep mode: single-linear */
ViReal64 v1 = 5; /* start voltage */
ViReal64 v2 = -5; /* stop voltage */
ViInt32 pts = 11; /* point */
ViReal64 th = 0.01; /* hold time */
ViReal64 td = 0.001; /* delay time and step delay time */
ViInt32 mm = 100; /* measurement mode: Cp-G */
ViReal64 mr = 0; /* measurement range: auto */
ViInt32 mpts; /* number of measurement steps */
ViReal64 sc[11]; /* source data */
ViReal64 md[22]; /* measurement data */
ViInt32 st[22]; /* status */
ViReal64 mon[22]; /* monitor data */
ViInt32 stmon[22]; /* monitor status */
ViInt32 tm[11]; /* time stamp data */
ret = agb1500_setSwitch(vi, ch, 1);
ret = agb1500_setCmuFreq(vi, ch, freq);
ret = agb1500_forceCmuAcLevel(vi, ch, acv);
ret = agb1500_resetTimestamp(vi);
ret = agb1500_setCv(vi, ch, om, v1, v2, pts, th, td, td);
ret = agb1500_sweepCv(vi, ch, mm, mr, &mpts, &sc[0], &md[0],
&st[0], &mon[0], &stmon[0], &tm[0]);
For the above example, the array variables sc[], md[], st[], mon[], stmon[], and tm[]
will contain the following data.
sc[n]: Sweep source setup data (DC bias sweep setup value).
md[2*n]: Primary parameter measurement data (ex: Cp).
md[2*n+1]: Secondary parameter measurement data (ex: G).
st[2*n]: Status for the md[2*n] data.
st[2*n+1]: Status for the md[2*n+1] data.
mon[2*n]: MFCMU monitor data (AC level monitor data).
mon[2*n+1]: MFCMU monitor data (DC bias monitor data).
stmon[2*n]: Status for the mon[2*n] data.
stmon[2*n+1]: Status for the mon[2*n+1] data.
tm[n]: Time stamp data (measurement start time) for the md[2*n] data.
where, n = 0 to 10 (integer).