Agilent Technologies B1500A Instrukcja Obsługi Strona 242

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 598
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 241
3-64 Agilent B1500A/B1505A Programming Guide, Edition 11
Programming Examples
Quasi-static CV Measurements
MsgBox("Connect DUT. Then click OK.", vbOKOnly, "") ’69
Console.WriteLine("Wait a minute . . ." & Chr(10))
session.WriteString("DV " & t(0) & ",0,0,0.1,0" & vbLf) ’Drain
session.WriteString("DV " & t(2) & ",0,0,0.1,0" & vbLf) ’Source
session.WriteString("DV " & t(3) & ",0,0,0.1,0" & vbLf) ’Substrate
session.WriteString("TSR" & vbLf)
session.WriteString("XE" & vbLf)
session.WriteString("*OPC?" & vbLf) : rep = session.ReadString(1 + 2) ’77
session.WriteString("ERR? 1" & vbLf) : err = session.ReadString(4 + 2)
If err <> 0 Then session.WriteString("DZ" & vbLf) : GoTo Check_err
session.WriteString("NUB?" & vbLf) : rep = session.ReadString(3 + 2)
If rep <> nop1 * 4 Then session.WriteString("DZ" & vbLf) : GoTo Check_nop
mret = session.ReadString(16 * 4 * nop1 + 2) ’4*nop1 data + terminator ’83
For i = 0 To nop1 - 1
st1(i) = Mid(mret, i * 16 * 4 + 16 * 1 + 1, 3)
st2(i) = Mid(mret, i * 16 * 4 + 16 * 2 + 1, 3)
tm(i) = Val(Mid(mret, i * 16 * 4 + 4, 12))
md1(i) = Val(Mid(mret, i * 16 * 4 + 16 * 1 + 4, 12))
md2(i) = Val(Mid(mret, i * 16 * 4 + 16 * 2 + 4, 12))
sc(i) = Val(Mid(mret, i * 16 * 4 + 16 * 3 + 4, 12))
data(j, i) = Chr(13) & Chr(10) & sc(i) & ", " & md2(i) * 1000000000000.0 & ", "
& st2(i) & ", " & md1(i) * 1000000000000.0 & ", " & st1(i) & ", " & tm(i)
Next i
session.WriteString("DZ" & vbLf) ’95
save_data(fname, title, value, data, nop1, nop2, session, t)
Exit Sub
Check_err: ’99
session.WriteString("EMG? " & err & vbLf) : msg = session.ReadString(256)
MsgBox("Instrument error: " & err & Chr(10) & msg, vbOKOnly, "")
Exit Sub
Check_nop: ’104
MsgBox("No. of data: " & rep & " (not " & nop1 * 4 & ")", vbOKOnly, "")
End Sub
Line Description
69 to 75 Displays a message box that prompts you to connect DUT. Clicking OK applies voltage
to the device, resets the time stamp, and performs the quasi-static CV measurement.
77 to 81 Waits until the measurement is completed. If an error is detected, applies 0 V and goes
to Check_err. Also if number of data is not correct, applies 0 V and goes to Check_nop.
83 to 93 Stores the returned data into the mret string variable. Finally, stores the measured data
into the data array.
95 to 105 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.
Przeglądanie stron 241
1 2 ... 237 238 239 240 241 242 243 244 245 246 247 ... 597 598

Komentarze do niniejszej Instrukcji

Brak uwag