
3-94 Agilent B1500A/B1505A Programming Guide, Edition 11
Programming Examples
CV (AC Level) Sweep Measurements
Measurement
Result Example
Level (mV), Cp (pF), C_st, G (uS), G_st, OSC (mV), Osc_st, DC (V),
Dc_st, Time (s)
10,0.101413,NGC,0.023601,NGY,9.9799,NGV,5.00485,NGV,0.0714
20,0.102654,NGC,0.0450136,NGY,19.963,NGV,5.0049,NGV,0.13921
30,0.100627,NGC,0.0522385,NGY,29.9446,NGV,5.00488,NGV,0.15706
40,0.10053,NGC,0.0529098,NGY,39.926,NGV,5.00491,NGV,0.22501
50,0.10008,NGC,0.0562029,NGY,49.8853,NGV,5.00495,NGV,0.24298
60,0.0982925,NGC,0.0492554,NGY,59.8801,NGV,5.00515,NGV,0.26092
70,0.0992213,NGC,0.0548534,NGY,69.899,NGV,5.00502,NGV,0.32885
80,0.099067,NGC,0.0501863,NGY,79.915,NGV,5.00514,NGV,0.34679
90,0.100248,NGC,0.0512628,NGY,89.892,NGV,5.00487,NGV,0.36446
100,0.0996081,NGC,0.0519715,NGY,99.869,NGV,5.00486,NGV,0.38241
Data save completed.
Do you want to perform measurement again?
session.WriteString("DZ" & vbLf) ’104
save_data(fname, title, value, data, nop1, nop2, session, t)
Exit Sub
Check_err: ’108
session.WriteString("EMG? " & err & vbLf) : msg = session.ReadString(256)
MsgBox("Instrument error: " & err & Chr(10) & msg, vbOKOnly, "")
Exit Sub
Check_nop: ’113
MsgBox("No. of data: " & rep & " (not " & nop1 * 6 & ")", vbOKOnly, "")
End Sub
Line Description
104 to 106 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.
108 to 111 Displays a message box to show an error message if the error is detected.
113 to 114 Displays a message box to show an error message if the number of returned data is not
correct.
Komentarze do niniejszej Instrukcji