Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3 4-45
Programming Examples for C++ Users
High Speed Spot C Measurement
High Speed Spot C Measurement
Table 4-17 explains example subprogram that performs capacitance spot
measurement. This example measures MOSFET gate-substrate capacitance by using
the multi frequency capacitance measurement unit (MFCMU) and a SMU/CMU
unify unit (SCUU).
To perform the example subprogram shown in Table 4-17, you need the following
setup.
• Insert the following line to the program (at the top of the program).
#include <windows.h>
• Insert the subprograms shown in Table 4-15 and Table 4-16 to the program
(between the check_err subprogram and the perform_meas subprogram).
• phase_compen subprogram
• open_corr subprogram
Table 4-15 Phase Compensation Subprogram
void phase_compen (ViSession vi, ViStatus ret) /* 1 */
{
ViInt32 rbx;
rbx = MessageBox(NULL , "Do you want to perform Phase Compensation?", "Phase
Compensation", MB_YESNO);
if (rbx != IDNO) {
MessageBox(NULL ,"Open measurement terminal. Then click OK.", "Phase
Compensation", MB_OK);
printf("Wait a minute . . .\n");
ret = agb1500_setCmuAdjustMode(vi, agb1500_CH_CMU, agb1500_CMUADJ_MANUAL);
ViInt16result;
ret = agb1500_execCmuAdjust(vi, agb1500_CH_CMU, &result);
if (result != 0) {check_err (vi, ret);} /* 11*/
}
}
Line Description
1 Beginning of the phase_compen subprogram.
3 to 11 Displays a message box that asks if you perform the phase compensation. If you click
Yes, the phase compensation will be performed. It will take about 30 seconds.
13 End of the phase_compen subprogram.