Keysight E5260/E5270 Programming Guide, Edition 4 3- 31
Programming Examples
Pulsed Sweep Measurements
Measurement
Result Example
Ib (mA), Vc (V), Ic (mA), Time (sec), Status
3, 0, -0.375, 0.1437, NCI
3, 0.5, 5.28, 0.1637, NCI
3, 1, 5.39, 0.1837, NCI
3, 1.5, 5.48, 0.2037, NCI
3, 2, 5.57, 0.2237, NCI
3, 2.5, 5.66, 0.2437, NCI
3, 3, 5.785, 0.2637, NCI
3, 3.5, 5.97, 0.2837, NCI
3, 4, 6.305, 0.3037, NCI
3, 4.5, 6.895, 0.3237, NCI
3, 5, 7.97, 0.3437, NCI
5, 0, -0.985, 0.12189, NCI
5, 0.5, 9.68, 0.14189, NCI
5, 1, 9.845, 0.16189, NCI
5, 1.5, 9.985, 0.18189, NCI
5, 2, 10.12, 0.20189, NCI
5, 2.5, 10.255, 0.22189, NCI
5, 3, 10.46, 0.24189, NCI
5, 3.5, 10.775, 0.26189, NCI
5, 4, 11.375, 0.28189, NCI
5, 4.5, 12.46, 0.30189, NCI
5, 5, 14.47, 0.32189, NCI
7, 0, -1.565, 0.12387, NCI
7, 0.5, 13.8, 0.14387, NCI
7, 1, 14.005, 0.16387, NCI
7, 1.5, 14.18, 0.18387, NCI
7, 2, 14.34, 0.20387, NCI
7, 2.5, 14.53, 0.22387, NCI
7, 3, 14.785, 0.24387, NCI
7, 3.5, 15.22, 0.26387, NCI
7, 4, 16.045, 0.28387, NCI
7, 4.5, 17.565, 0.30387, NCI
7, 5, 20.355, 0.32387, NCI
Data save completed.
session.WriteString("DZ" & vbLf) ’71
save_data(fname, title, value, data, nop1, nop2, session, t)
Exit Sub
Check_err: ’75
session.WriteString("EMG? " & err & vbLf) : msg = session.ReadString(256)
MsgBox("Instrument error: " & err & Chr(10) & msg, vbOKOnly, "")
Exit Sub
Check_nop: ’80
MsgBox("No. of data: " & rep & " (not " & nop1 * 3 & ")", vbOKOnly, "")
End Sub
Line Description
71 to 72 Applies 0 V from all channels. And transfers the data stored in the data variable to the
save_data subprogram (see
Table 3-1). And the subprogram will save the data into a
CSV file specified by the fname variable and displays the data on a message box.
75 to 77 Displays a message box to show an error message if the error is detected.
80 to 81 Displays a message box to show an error message if the number of returned data is not
correct.