Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 3-19
Programming Examples for Visual Basic Users
Synchronous Sweep Measurements
Sub sweep_meas(vi As Long, ret As Long, m() As Long)
’1
Dim vpri1
As Double
’3
Dim vpri2
As Double
Dim vsyn1
As Double
Dim vsyn2
As Double
Dim vcon1
As Double
Dim vcon2
As Double
Dim i1comp
As Double
Dim i2comp
As Double
Dim hold
As Double
Dim delay
As Double
Dim s_delay
As Double
Dim p1comp
As Double
Dim p2comp
As Double
Dim nop
As Long
vpri1 = 0
vpri2 = 3
i1comp = 0.01
vsyn1 = 0
vsyn2 = 3
i2comp = 0.05
hold = 0
delay = 0
s_delay = 0
p1comp = 0
p2comp = 0
nop = 11
’29
Dim rep
As Long
’31
Dim sc()
As Double ’primary sweep output data
Dim md()
As Double ’sweep measurement data
Dim st()
As Long
’status data at each step
ReDim Preserve sc(nop) As Double
ReDim Preserve md(nop) As Double
ReDim Preserve st(nop) As Long
’38
Line
Description
1
Beginning of the sweep_meas subprogram.
3 to 29
Declares variables, and defines the value.
31 to 38
Declares variables used to keep source data, measurement data
and status data. Also defines array size.
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...