Agilent Technologies B1500A Podręcznik Użytkownika Strona 153

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 152
Agilent B1500 VXIplug&play Driver Users Guide, Edition 3 3-59
Programming Examples for Visual Basic Users
Leakage Current Measurement
Leakage Current Measurement
Table 3-13 explains example subprograms that enable/disable measurement
channels (perform_meas), perform the quasi pulsed spot measurement (spot_meas),
and display measurement result data (display_data). This example measures
MOSFET drain current.
Table 3-13 Leakage Current Measurement Example
Sub perform_meas(vi As Long, ret As Long) ’1
Dim pins(4) As Long ’SMU port numbers ’3
pins(0) = 1 ’SMU1: drain
pins(1) = 2 ’SMU2: gate
pins(2) = 4 ’SMU4: source
pins(3) = 6 ’SMU6: substrate
ret = agb1500_setSwitch(vi, pins(3), 1) ’9
ret = agb1500_setSwitch(vi, pins(2), 1)
ret = agb1500_setSwitch(vi, pins(1), 1)
ret = agb1500_setSwitch(vi, pins(0), 1)
check_err vi, ret ’13
spot_meas vi, ret, pins() ’15
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0) ’17
check_err vi, ret
End Sub ’20
Line Description
1 Beginning of the perform_meas subprogram.
3 to 7 Declares variables, and defines the value.
9 to 12 Enables measurement channels.
15 Calls the spot_meas subprogram (next page) to perform spot
measurement.
17 Disables measurement channels.
13 and 18 Calls the check_err subprogram (shown in Table 3-1) to check if
an error status is returned for the previous line.
20 End of the perform_meas subprogram.
Przeglądanie stron 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag