Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3 4-51
Programming Examples for C++ Users
CV Sweep Measurement
phase_compen (vi, ret); /* 43 */
ret = agb1500_setCmuFreq(vi, agb1500_CH_CMU, freq);
ret = agb1500_forceCmuAcLevel(vi, agb1500_CH_CMU, osc_level);
open_corr (vi, ret, freq, ref_cp, ref_g);
ViInt32 rbx; /* 49 */
rbx = MessageBox(NULL , "Connect DUT. Then click OK.", "CV sweep measurement",
MB_OK);
ret = agb1500_setCv(vi, agb1500_CH_CMU, agb1500_SWP_VF_SGLLIN, vg1, vg2, nop1,
hold, delay, s_delay);
check_err (vi, ret);
ret = agb1500_resetTimestamp(vi); /* 54 */
ret = agb1500_sweepCv(vi, agb1500_CH_CMU, agb1500_CMUM_CP_G, range, &rep, &sc[0],
&md[0], &st[0], &mon[0], &st_mon[0], &mt[0]);
check_err (vi, ret);
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL); /* 58 */
check_err (vi, ret);
Line Description
43 Calls the phase_compen subprogram (shown in Table 4-15) used to perform the phase
compensation of the MFCMU.
45 Sets the frequency of the MFCMU output signal.
46 Sets the oscillator level of the MFCMU output signal.
47 Calls the open_corr subprogram (shown in Table 4-16) used to perform the open
correction of the MFCMU.
49 to 51 Displays a message box that asks you to connect the device to the measurement
terminals. Then connect the CMUH and CMUL to the gate and substrate respectively.
Pressing OK sets the DC bias sweep source of the MFCMU.
52, 56, and
59
Calls the check_err subprogram (shown in Table 4-1) to check if an error status is
returned for the previous line.
54 Resets the time stamp.
55 Performs capacitance-voltage (CV) sweep measurement.
58 Applies 0 V from all channels.