Agilent Technologies B1500A Podręcznik Użytkownika Strona 154

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 153
3-60 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for Visual Basic Users
Leakage Current Measurement
Sub spot_meas(vi As Long, ret As Long, pins() As Long) ’1
Dim vstart As Double
Dim vstop As Double
Dim vg As Double
Dim idcomp As Double
Dim igcomp As Double
Dim hold As Double
Dim delay As Double
Dim meas As Double
Dim status As Long
vstart = -5
vstop = 5
idcomp = 0.05
vg = 0
igcomp = 0.01
hold = 0.1
delay = 0.001 ’17
ret = agb1500_force(vi, pins(3), agb1500_VF_MODE, 0, 0, 0.05, 0) ’19
ret = agb1500_force(vi, pins(2), agb1500_VF_MODE, 0, 0, 0.05, 0)
ret = agb1500_force(vi, pins(1), agb1500_VF_MODE, 2, vg, igcomp, 0)
ret = agb1500_setIleak(vi, pins(0), 0, vstop, idcomp, vstart, hold, delay) ’22
check_err vi, ret
ret = agb1500_measureIleak(vi, pins(0), agb1500_SHORT_INTERVAL, meas, status) ’24
check_err vi, ret
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL) ’26
check_err vi, ret
display_data meas, status, vi, ret, pins() ’28
End Sub
Line Description
1 Beginning of the spot_meas subprogram.
3 to 17 Declares variables, and defines the value.
19 to 21 Applies voltage to device.
22 Sets the quasi pulsed voltage source.
24 Performs the quasi pulsed spot measurement (leakage current measurement).
26 Sets the specified port to the zero output state.
23, 25, and 27 Calls the check_err subprogram (shown in Table 3-1) to check if an error status is
returned for the previous line.
28 Calls the display_data subprogram (next page) to display measurement data.
29 End of the spot_meas subprogram.
Przeglądanie stron 153
1 2 ... 149 150 151 152 153 154 155 156 157 158 159 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag