4-38 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for C++ Users
Breakdown Voltage Measurement
Measurement
Result Example
Vbd = 56.245000 V
ret = agb1500_measureBdv(vi, agb1500_SHORT_INTERVAL, &meas,
&status); /* 25 */
check_err (vi, ret);
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL); /* 28 */
check_err (vi, ret);
if (status = 8){ /* 31 */
printf("Vbd = %9.6f V \n", meas);
}
else {
printf("Error occurred during measurement.\n");
printf("Status code = %d \n", status);
} /* 37 */
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0); /* 39 */
check_err (vi, ret);
}
Line Description
25 Performs quasi pulsed spot measurement. Breakdown voltage
will be defined as the voltage that occurs the current compliance
status at the device terminal where the measurement channel is
connected.
28 Sets the specified port to the zero output state.
31 to 37 Displays the measurement result data if the status is normal (8),
or displays error message if the status is abnormal.
39 Disables all ports.
26, 29,
and 40
Calls the check_err subprogram (shown in Table 4-1) to check if
an error status is returned for the previous line.
41 End of the perform_meas subprogram.