Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 3-41
Programming Examples for Visual Basic Users
Multi-Channel Pulsed Sweep Measurements
ret = hp4156b_setInteg(vi, hp4156b_INTEG_TBL_SHORT, 0.0001, 2)
’36
ret = hp4156b_setFilter(vi, m(0), hp4156b_FLAG_OFF)
ret = hp4156b_cmd(vi, "PT 0,0.005,0.01,0,1")
’sets pulse timing parameters
ret = hp4156b_cmd(vi, "PWV 1,1,0,0,0,-0.8,11,0.1,0") ’sets pulsed sweep source
check_err vi, ret
’40
ret = hp4156b_force(vi, m(1), hp4156b_VF_MODE, 0, vb, ibcomp, 0)
’42
ret = hp4156b_force(vi, m(2), hp4156b_VF_MODE, 0, vc, iccomp, 0)
ret = hp4156b_startMeasure(vi, hp4156b_MM_PSWEEP, mch(0), mode(0), range(0),
hp4156b_FLAG_ON)
check_err vi, ret
ret = hp4156b_zeroOutput(vi, hp4156b_CH_ALL)
’47
Dim i As Integer
For i = 1 To nop
ret = hp4156b_readData(vi, eod, dtype, mdata, stat, ch)
md1(i) = mdata ’ Data measured by mch(0) = collector
ret = hp4156b_readData(vi, eod, dtype, mdata, stat, ch)
md2(i) = mdata ’ Data measured by mch(1) = base
ret = hp4156b_readData(vi, eod, dtype, mdata, stat, ch)
sc(i) = mdata ’ Pulsed sweep source output data
Next i
save_data nop, m(), sc(), md1(), md2(), vi, ret
End Sub
’59
Line
Description
36 to 40
Sets the A/D converter integration time, sets the SMU filter off for the pulsed
sweep source, sets the pulse timing parameters, and sets the pulsed sweep source.
After that, calls the check_err subprogram (shown in Table 3-1) to check if an error
status is returned for the previous line.
42 to 45
Applies voltage to device, and performs multi channel pulsed sweep 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.
47 to 56
Sets all channels to zero output state, and reads the measurement result data.
58
Calls the save_data subprogram to save measurement data.
59
End of the sweep_meas subprogram.
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...