3-54 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for Visual Basic Users
Stress Force
Sub stress_meas(vi As Long, ret As Long, m() As Long)
’1
Dim range
As Double
’3
Dim base
As Double
Dim stress
As Double
Dim bias
As Double
Dim icomp
As Double
Dim vlout
As Double
Dim ilcomp
As Double
Dim hold
As Double
Dim duration As Double
Dim period
As Double
Dim status
As Long
Dim md(4)
As Double
Dim st(4)
As Long
range =
0
base =
0
stress =
2
bias =
0.1
icomp =
0.1
vlout =
0
ilcomp =
0.1
hold =
0
duration = 5
period =
0.01
ret = hp4156b_setFilter(vi, hp4156b_CH_ALL, hp4156b_FLAG_ON)
’28
ret = hp4156b_setInteg(vi, hp4156b_INTEG_TBL_SHORT, 0.0001, 2)
ret = hp4156b_force(vi, m(2), hp4156b_VF_MODE, range, vlout, ilcomp, 0)
ret = hp4156b_force(vi, m(1), hp4156b_VF_MODE, range, bias, icomp, 0)
ret = hp4156b_force(vi, m(0), hp4156b_VF_MODE, range, bias, icomp, 0)
ret = hp4156b_spotMeas(vi, m(0), hp4156b_IM_MODE, range, md(0), st(0))
ret = hp4156b_spotMeas(vi, m(1), hp4156b_IM_MODE, range, md(1), st(1))
check_err vi, ret
ret = hp4156b_zeroOutput(vi, hp4156b_CH_ALL)
’37
disp_data1 vi, ret, m(), md(), st(), stress, duration
Line
Description
1
Beginning of the stress_meas subprogram.
3 to 26
Declares variables, and defines the value.
28 to 35
Sets the SMU filter on for the all channels, sets the A/D converter
integration time, applies voltage to device, and performs spot
measurement. After that, calls the check_err subprogram (shown in
Table 3-1) to check if an error status is returned for the previous line.
37 to 38
Sets all channels to zero output state, and calls the disp_data1
subprogram to display measurement data.
Summary of Contents for 4155C
Page 3: ......
Page 13: ...1 Installation...
Page 19: ...2 Driver Function Reference...
Page 89: ...3 Programming Examples for Visual Basic Users...
Page 147: ...4 Programming Examples for Visual Basic NET Users...
Page 183: ...5 Programming Examples for C Users...
Page 225: ...6 Programming Examples for VEE Users...