3-50 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for Visual Basic Users
Staircase Sweep with Pulsed Bias Measurement
Staircase Sweep with Pulsed Bias Measurement
Table 3-11 explains example subprograms that enable/disable measurement
channels (perform_meas), perform the staircase sweep with pulsed bias
measurement (sweep_meas), and save measurement result data into a file
(save_data). This example measures MOSFET Id-Vd characteristics.
Table 3-11 Staircase Sweep with Pulsed Bias Measurement Example
Sub perform_meas(vi As Long, ret As Long) ’1
Dim m(4) As Long ’SMU port numbers ’3
m(0) = 1 ’SMU1: drain
m(1) = 2 ’SMU2: gate
m(2) = 4 ’SMU4: source
m(3) = 6 ’SMU6: substrate
ret = agb1500_setSwitch(vi, m(3), 1) ’9
ret = agb1500_setSwitch(vi, m(2), 1)
ret = agb1500_setSwitch(vi, m(1), 1)
ret = agb1500_setSwitch(vi, m(0), 1)
check_err vi, ret ’13
sweep_meas vi, ret, m() ’15
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0) ’17
check_err vi, ret
End Sub ’20
Line Description
1 Beginning of the perform_meas subprogram.
3 to 7 Declares variables, and defines the value.
9 to 12 Enables measurement channels.
15 Calls the sweep_meas subprogram (next page) to perform
staircase sweep measurement.
17 Disables measurement channels.
13 and 18 Calls the check_err subprogram (shown in Table 3-1) to check if
an error status is returned for the previous line.
20 End of the perform_meas subprogram.