EasyManuals Logo

Agilent Technologies 4156C User Manual

Agilent Technologies 4156C
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #138 background imageLoading...
Page #138 background image
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.

Table of Contents

Other manuals for Agilent Technologies 4156C

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 4156C and is the answer not in the manual?

Agilent Technologies 4156C Specifications

General IconGeneral
BrandAgilent Technologies
Model4156C
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals