3-50 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for Visual Basic Users
Sampling Measurements
ret = hp4156b_setFilter(vi, hp4156b_CH_ALL, hp4156b_FLAG_ON)
’41
ret = hp4156b_setInteg(vi, hp4156b_INTEG_TBL_SHORT, 0.0001, 2)
ret = hp4156b_setSample(vi, hold, interval, nop)
’44
ret = hp4156b_addSampleSyncIv(vi, m(0), hp4156b_VF_MODE, 0, base, bias, icomp)
ret = hp4156b_addSampleSyncIv(vi, m(1), hp4156b_VF_MODE, 0, base, bias, icomp)
ret = hp4156b_force(vi, m(2), hp4156b_VF_MODE, 0, vlout, ilcomp, 0)
ret = hp4156b_sample(vi, mch(0), mode(0), range(0), point, index(0), value(0),
status(0))
’49
check_err vi, ret
ret = hp4156b_clearSampleSync(vi)
’52
ret = hp4156b_zeroOutput(vi, hp4156b_CH_ALL)
Dim msg As String
’55
If point <> nop Then
msg = point & " measurement steps were returned. It must be " & nop & " steps."
MsgBox msg, vbOKOnly, ""
Else
save_data vi, ret, nop, index(), bias, value(), status(), m()
End If
End Sub
’63
Line
Description
41 to 42
Sets the SMU filter on for the all channels, and sets the A/D converter integration
time.
44 to 47
Sets the sampling timing parameters, sets the voltage sources that operate
synchronously with the measurement trigger, and applies voltage to device.
49 to 50
Performs the sampling 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.
52 to 53
Clears the setting of the voltage sources defined by the hp4156b_addSampleSyncIv
function, and sets all channels to zero output state.
55 to 61
Calls the save_data subprogram (next page) to save the measurement result data.
However, if the number of returned data is not equal to the nop value, the program
disables the source/measurement channels and stops program execution without
saving the measurement data.
63
End of the sampling_meas subprogram.
Содержание 4155C
Страница 3: ......
Страница 13: ...1 Installation...
Страница 18: ...1 6 Agilent 4155C 4156C VXIplug play Driver User s Guide Edition 4 Installation Installing VXIplug play Driver...
Страница 19: ...2 Driver Function Reference...
Страница 89: ...3 Programming Examples for Visual Basic Users...
Страница 147: ...4 Programming Examples for Visual Basic NET Users...
Страница 183: ...5 Programming Examples for C Users...
Страница 225: ...6 Programming Examples for VEE Users...
Страница 271: ...7 Sample Application Programs Using VEE...