User`s guide
4-40 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for C++ Users
Leakage Current Measurement
Measurement 
Result Example
Id = 12.240000 mA
Vd = -5.00 to 5.00 V
Vg = 0.00 V
ret = agb1500_setIleak(vi, drain, 0, vd, idcomp, start, hold, 
delay); /* 29 */
check_err (vi, ret);
ret = agb1500_measureIleak(vi, drain, agb1500_SHORT_INTERVAL, 
&meas, &status); /* 32 */
check_err (vi, ret);
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL); /* 35 */
check_err (vi, ret);
printf("Id = %9.6f mA\n", meas * 1000); /* 38 */
printf("Vd = %5.2f to %4.2f V\n", start, vd);
printf("Vg = %4.2f V\n", vg);
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0); /* 42 */
check_err (vi, ret);
}
Line Description 
29 Sets the quasi pulsed voltage source.
32 Performs quasi pulsed spot measurement. Leakage current will 
be defined as the current when the target voltage (vd) is applied 
to device terminal where the source channel is connected.
35 Sets the specified port to the zero output state.
38 to 40 Displays the measurement result data.
42 Disables all ports.
30, 33, 36, 
and 43
Calls the check_err subprogram (shown in Table 4-1) to check if 
an error status is returned for the previous line.
44 End of the perform_meas subprogram.










