Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4 4-35
Programming Examples for Visual Basic .NET Users
Stress Force
Measurement
Result Example
Condition, I1 (mA), Status1, I2 (mA), Status2
Before stress, 9.80588, 0, 9.27516, 0
After stress, 9.80886, 0, 9.3245, 0
Data save completed.
Do you want to perform measurement again?
data(j, 0) = Chr(13) & Chr(10) & "Before stress, " & md(0) * 1000 & ", " & st(0) ’38
data(j, 0) = data(j, 0) & ", " & md(1) * 1000 & ", " & st(1)
Ag415x.SetStress(hold, Hp4156b.ModeEnum6.DurationMode, duration, period) ’41
Ag415x.Force(t(2), Hp4156b.ModeEnum.VoltageOutput, range, vlout, ilcomp, 0)
Ag415x.AddStressSyncIv(1, t(0), 2, range, base, stress, icomp)
Ag415x.AddStressSyncIv(2, t(1), 2, range, base, stress, icomp)
Ag415x.ErrorQuery(err, msg)
If err <> 0 Then Ag415x.ZeroOutput(0) : GoTo Check_err
Ag415x.Stress(status)
Ag415x.ZeroOutput(0)
Ag415x.ClearStressSync()
Ag415x.Force(t(2), Hp4156b.ModeEnum.VoltageOutput, range, vlout, ilcomp, 0) ’51
Ag415x.Force(t(1), Hp4156b.ModeEnum.VoltageOutput, range, bias, icomp, 0)
Ag415x.Force(t(0), Hp4156b.ModeEnum.VoltageOutput, range, bias, icomp, 0)
Ag415x.SpotMeas(t(0), Hp4156b.ModeEnum1.CurrentMeasurement, range, md(2), st(2))
Ag415x.SpotMeas(t(1), Hp4156b.ModeEnum1.CurrentMeasurement, range, md(3), st(3))
Ag415x.ZeroOutput(0)
data(j, 1) = Chr(13) & Chr(10) & "After stress, " & md(2) * 1000 & ", " & st(2)
data(j, 1) = data(j, 1) & ", " & md(3) * 1000 & ", " & st(3)
save_data(fname, title, val, data, nop1, nop2, Ag415x) ’60
Check_err: ’62
If err <> 0 Then MsgBox("Instrument error: " & err & Chr(10) & msg, vbOKOnly, "")
End Sub
Line Description
38 to 39 Stores the measured data into the data valiable.
41 to 49 Sets the stress timing parameters, applies voltage to the device, sets the dc voltage sources
used for the stress force, and checks if an error occurred. If an error is detected, forces 0 V
and goes to Check_err. And then, applies the stress to the device. After the stress, applies 0
V from the all channels and clears the setup of the dc voltage sources for the stress.
51 to 58 Applies voltage to the device, performs spot measurement, applies 0 V from the all
channels, and stores the measured data into the data valiable.
60 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\data12.txt file (CSV) and
displays the data on a message box.
62 to 63 Displays a message box to show an error message if the error is detected.