Agilent Technologies B1500A User's Guide Page 195

  • Download
  • Add to my manuals
  • Print
  • Page
    / 208
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 194
Agilent B1500 VXIplug&play Driver Users Guide, Edition 3 4-39
Programming Examples for C++ Users
Leakage Current Measurement
Leakage Current Measurement
Table 4-13 explains an example subprogram that performs the quasi pulsed spot
measurement and displays the measurement result data (MOSFET drain current).
Table 4-13 Leakage Current Measurement Example
void perform_meas (ViSession vi, ViStatus ret) /* 1 */
{
ViInt32 drain = 1; /* SMU1, drain */
ViInt32 gate = 2; /* SMU2, gate */
ViInt32 source = 4; /* SMU4, source */
ViInt32 bulk = 6; /* SMU6, bulk */
ViReal64 vd = 5;
ViReal64 vg = 0;
ViReal64 idcomp = 0.05;
ViReal64 igcomp = 0.01;
ViReal64 start = -5;
ViReal64 hold = 0.1;
ViReal64 delay = 0.001;
ViReal64 meas;
ViInt32 status; /* 16 */
ret = agb1500_setSwitch(vi, drain, 1); /* 18 */
ret = agb1500_setSwitch(vi, gate, 1);
ret = agb1500_setSwitch(vi, source, 1);
ret = agb1500_setSwitch(vi, bulk, 1);
check_err (vi, ret); /* 22 */
ret = agb1500_force(vi, bulk, agb1500_VF_MODE, 0, 0, 0.1, 0);
ret = agb1500_force(vi, source, agb1500_VF_MODE, 0, 0, 0.1, 0);
ret = agb1500_force(vi, gate, agb1500_VF_MODE, 0, vg, igcomp,
0);
check_err (vi, ret); /* 27 */
Line Description
1 Beginning of the perform_meas subprogram.
4 to 16 Declares variables, and defines the value.
18 to 21 Enables measurement channels.
24 to 26 Applies voltage to device.
22 and 27 Calls the check_err subprogram (shown in Table 4-1) to check if
an error status is returned for the previous line.
Page view 194
1 2 ... 190 191 192 193 194 195 196 197 198 199 200 ... 207 208

Comments to this Manuals

No comments