EasyManuals Logo

Agilent Technologies 4155C User Manual

Agilent Technologies 4155C
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 #102 background imageLoading...
Page #102 background image
3-14 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for Visual Basic Users
Staircase Sweep Measurements
Sub sweep_meas(vi As Long, ret As Long, m() As Long) ’1
Dim vd1 As Double ’3
Dim vd2 As Double
Dim idcomp As Double
Dim vg1 As Double
Dim vg2 As Double
Dim igcomp As Double
Dim hold As Double
Dim delay As Double
Dim s_delay As Double
Dim p_comp As Double
Dim nop1 As Long
Dim nop2 As Long
vd1 = 0
vd2 = 3
idcomp = 0.05
vg1 = 1
vg2 = 3
igcomp = 0.01
hold = 0
delay = 0
s_delay = 0
p_comp = 0
nop1 = 11
nop2 = 3
Dim i As Integer
Dim j As Integer
Dim n As Long
n = nop1 * nop2 ’30
Dim msg As String
Dim rep As Long ’33
Dim sc() As Double ’primary sweep output data
Dim md() As Double ’sweep measurement data
Dim st() As Long ’status data at each step
Dim dvg() As Double ’secondary sweep output data
ReDim Preserve sc(n) As Double
ReDim Preserve md(n) As Double
ReDim Preserve st(n) As Long
ReDim Preserve dvg(nop2) As Double ’41
ret = hp4156b_force(vi, m(3), hp4156b_VF_MODE, 0, 0, 0.05, 0)
ret = hp4156b_force(vi, m(2), hp4156b_VF_MODE, 0, 0, 0.05, 0)
Line Description
1 Beginning of the sweep_meas subprogram.
3 to 30 Declares variables, and defines the value.
33 to 41 Declares variables used to keep source data, measurement data
and status data. Also defines array size.
43 to 44 Applies voltage to device.

Table of Contents

Other manuals for Agilent Technologies 4155C

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies 4155C Specifications

General IconGeneral
BrandAgilent Technologies
Model4155C
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals