3-52 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for Visual Basic Users
Staircase Sweep with Pulsed Bias Measurement
ret = agb1500_resetTimestamp(vi) ’47
check_err vi, ret
ret = agb1500_force(vi, m(3), agb1500_VF_MODE, 0, 0, 0.05, 0)
ret = agb1500_force(vi, m(2), agb1500_VF_MODE, 0, 0, 0.05, 0)
Dim d_vg As Double ’secondary sweep step value (delta) ’53
If nop2 = 1 Then
d_vg = 0
Else
d_vg = (vg2 - vg1) / (nop2 - 1)
End If ’58
Dim vg As Double ’secondary sweep source output ’60
vg = vg1
i = 0 ’array counter for sweepIv returned data ’63
Dim width As Double ’65
Dim period As Double
Dim p_hold As Double
width = 0.001
period = 0.01
p_hold = 0.1 ’70
Line Description
47 Resets time stamp.
48 Calls the check_err subprogram (shown in Table 3-1) to check if
an error status is returned for the previous line.
50 to 51 Applies voltage to device.
53 to 58 Declares a variable, and defines the value. This variable is used
for the step value of the secondary sweep source.
60 to 61 Declares a variable, and defines the value. This variable is used
for the output value of the secondary sweep source.
63 Sets the array counter i to 0.
65 to 70 Declares variables for the pulsed source, and defines the value.