Agilent Technologies B1500A Uživatelská příručka Strana 115

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 114
Agilent B1500 VXIplug&play Driver Users Guide, Edition 3 3-21
Programming Examples for Visual Basic Users
Staircase Sweep Measurement
For j = 1 To nop2 ’array counter for secondary sweep output data ’63
dvg(j - 1) = vg
ret = agb1500_force(vi, m(1), agb1500_VF_MODE, 0, vg, igcomp, 0)
ret = agb1500_setIv(vi, m(0), agb1500_SWP_VF_SGLLIN, 0, vd1, vd2, nop1, hold,
delay, s_delay, idcomp, p_comp)
check_err vi, ret
ret = agb1500_sweepIv(vi, m(0), agb1500_IM_MODE, 0, rep, sc(i), md(i), st(i),
tm(i))
check_err vi, ret
vg = vg + d_vg
If rep = nop1 Then
i = i + nop1
Else
msg = rep & " measurement steps were returned. It must be " & nop1 & "
steps. "
MsgBox msg, vbOKOnly, ""
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL)
check_err vi, ret
GoTo Bottom_sub
End If
Next j ’80
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL) ’82
check_err vi, ret
save_data nop1, nop2, dvg(), md(), st(), sc(), tm(), vi, ret, m() ’85
Bottom_sub:
End Sub ’88
Line Description
63 to 83 Measures MOSFET Id-Vd characteristics.
65 to 66 Applies voltage to device, and sets the voltage sweep source.
68 Performs the staircase sweep measurement.
71 to 80 Disables all ports and stops the program execution if the number of returned data is
not equal to the nop1 value.
85 Sets the specified port to the zero output state.
67, 69, 77, and 83 Calls the check_err subprogram (shown in Table 3-1) to check if an error status is
returned for the previous line.
85 Calls the save_data subprogram (next page) to save measurement data.
88 End of the sweep_meas subprogram.
Zobrazit stránku 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 207 208

Komentáře k této Příručce

Žádné komentáře