4-18 Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
Programming Examples for Visual Basic .NET Users
Multi-Channel Sweep Measurements
Measurement
Result Example
Vb (V), Ib (mA), Status_b, Ic (mA), Status_c, hfe
0.2999, -3E-06, 0, -6E-06, 0, 2
0.3499, -3E-06, 0, -3.3E-05, 0, 11
0.4, 2.3E-06, 0, -6E-06, 0, -2.60869565217391
0.45, 5.1E-06, 0, 0.00021, 0, 41.1764705882353
0.5, 1.33E-05, 0, 0.001864, 0, 140.15037593985
0.55, 6.8E-05, 0, 0.012705, 0, 186.838235294118
0.6, 0.0004727, 0, 0.087561, 0, 185.235878993019
0.65, 0.003016, 0, 0.597003, 0, 197.945291777188
0.7, 0.0188088, 0, 3.81314, 0, 202.731700055293
0.75, 0.0953332, 0, 18.5294, 0, 194.364607502948
0.8, 0.318431, 0, 54.3315, 0, 170.622521048516
Data save completed.
Do you want to perform measurement again?
Ag415x.ErrorQuery(err, msg)
’39
If err <> 0 Then Ag415x.ZeroOutput(0) : GoTo Check_err
Ag415x.Force(t(2), Hp4156b.ModeEnum.VoltageOutput, 0, ve, iecomp, 0)
’42
Ag415x.Force(t(1), Hp4156b.ModeEnum.VoltageOutput, 0, vc, iccomp, 0)
Ag415x.SweepMiv(mch, mode, range, rep, sc, md, st)
If rep <> nop1 Then Ag415x.ZeroOutput(0) : GoTo Check_err
For i = 0 To nop1 - 1
’47
data(j, i) = Chr(13) & Chr(10) & sc(i) & ", " & md(2 * i) * 1000 & ", "
data(j, i) = data(j, i) & st(2 * i) & ", " & md(2 * i + 1) * 1000 & ", "
data(j, i) = data(j, i) & st(2 * i + 1) & ", " & md(2 * i + 1) / md(2 * i)
Next i
Ag415x.ZeroOutput(0)
’53
save_data(fname, title, val, data, nop1, nop2, Ag415x)
Check_err:
’56
If err <> 0 Then MsgBox("Instrument error: " & err & Chr(10) & msg, vbOKOnly, "")
If rep <> nop1 Then MsgBox("No. of data: " & rep & " (not " & nop1 & ")", vbOKOnly, "")
End Sub
Line
Description
39 to 40
Checks if an error occurred. If an error is detected, forces 0 V and goes to Check_err.
42 to 45
Applies voltage to device and performs sweep measurement. After that, checks the number
of returned data. If it was not rep= nop1, forces 0 V and goes to Check_err.
47 to 51
Stores the measured data into the
data
valiable.
53 to 54
Applies 0 V from the all channels. And transfers the data stored in the
data
variable to the
save_data subprogram (see Table 4-1). And the subprogram will save the data into the
C:\Agilent\data\data5.txt file (CSV) and displays the data on a message box.
56 to 58
Displays a message box to show an error message if the error is detected.
Содержание 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...