EasyManuals Logo
Home>Agilent Technologies>Measuring Instruments>B1500A

Agilent Technologies B1500A User Manual

Agilent Technologies B1500A
208 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 #102 background imageLoading...
Page #102 background image
3-8 Agilent B1500 VXIplug&play Driver Users Guide, Edition 3
Programming Examples for Visual Basic Users
High Speed Spot Measurement
Sub spot_meas(vi As Long, ret As Long, pins() As Long) ’1
Dim vd As Double ’3
Dim vg As Double
Dim idcomp As Double
Dim igcomp As Double
Dim meas As Double
Dim status As Long
vd = 0.5
idcomp = 0.05
vg = 0.5
igcomp = 0.01 ’12
ret = agb1500_force(vi, pins(3), agb1500_VF_MODE, 0, 0, 0.05, 0) ’14
ret = agb1500_force(vi, pins(2), agb1500_VF_MODE, 0, 0, 0.05, 0)
ret = agb1500_force(vi, pins(1), agb1500_VF_MODE, 2, vg, igcomp, 0)
ret = agb1500_force(vi, pins(0), agb1500_VF_MODE, 2, vd, idcomp, 0) ’17
check_err vi, ret
ret = agb1500_spotMeas(vi, pins(0), agb1500_IM_MODE, 0, meas, status, 0) ’20
check_err vi, ret
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL) ’22
check_err vi, ret
display_data meas, status, vi, ret, pins()
End Sub
Line Description
1 Beginning of the spot_meas subprogram.
3 to 12 Declares variables, and defines the value.
14 to 17 Applies voltage to device.
20 Performs the high speed spot measurement.
22 Sets the specified port to the zero output state.
18, 21, and 23 Calls the check_err subprogram (shown in Table 3-1) to check if an error status is
returned for the previous line.
25 Calls the display_data subprogram (next page) to display measurement data.
26 End of the spot_meas subprogram.

Table of Contents

Other manuals for Agilent Technologies B1500A

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies B1500A Specifications

General IconGeneral
BrandAgilent Technologies
ModelB1500A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals