Agilent Technologies B1500A Podręcznik Użytkownika Strona 120

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 119
3-26 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for Visual Basic Users
Staircase Sweep Measurement
ret = agb1500_resetTimestamp(vi) ’40
ret = agb1500_force(vi, m(3), agb1500_VF_MODE, 0, vcon1, 0.05, 0)
ret = agb1500_force(vi, m(2), agb1500_VF_MODE, 0, vcon2, 0.05, 0)
ret = agb1500_setIv(vi, m(1), agb1500_SWP_VF_SGLLIN, 0, vpri1, vpri2, nop, hold,
delay, s_delay, i1comp, p1comp)
check_err vi, ret
ret = agb1500_setSweepSync(vi, m(0), agb1500_VF_MODE, 0, vsyn1, vsyn2, i2comp,
P2comp)
check_err vi, ret ’46
ret = agb1500_sweepIv(vi, m(0), agb1500_IM_MODE, 0, rep, sc(0), md(0), st(0),
tm(0))
check_err vi, ret
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL) ’51
Dim msg As String
If rep = nop Then ’54
save_data nop, md(), st(), sc(), tm(), vi, ret, m()
Else
msg = rep & " measurement steps were returned. It must be " & nop & " steps. "
MsgBox msg, vbOKOnly, ""
End If ’59
End Sub ’61
Line Description
40 Resets time stamp.
41 to 42 Applies voltage to device.
43 Sets the primary sweep source.
45 Sets the synchronous sweep source.
48 Performs the staircase sweep measurement.
51 Sets the specified port to the zero output state.
44, 46, and 49 Calls the check_err subprogram (shown in Table 3-1) to check if an error status is
returned for the previous line.
54 to 59 Calls the save_data subprogram to save measurement data. Or, displays a message
box if the number of returned data is not equal to the nop value.
61 End of the sweep_meas subprogram.
Przeglądanie stron 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag