Agilent Technologies B1500A User's Guide Page 118

  • Download
  • Add to my manuals
  • Print
  • Page
    / 208
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 117
3-24 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for Visual Basic Users
Staircase Sweep Measurement
Table 3-6 explains example subprograms that enable/disable measurement channels
(perform_meas), perform the staircase sweep measurement (sweep_meas), and save
measurement result data into a file (save_data). This example measures MOSFET
Id-Vg characteristics. The subprogram uses the synchronous sweep source set by the
agb1500_setSweepSync function.
Table 3-6 Staircase Sweep Measurement Example 2
Sub perform_meas(vi As Long, ret As Long) ’1
Dim m(4) As Long ’SMU port numbers ’3
m(0) = 1 ’SMU1: drain
m(1) = 2 ’SMU2: gate
m(2) = 4 ’SMU4: source
m(3) = 6 ’SMU6: substrate
ret = agb1500_setSwitch(vi, m(3), 1) ’9
ret = agb1500_setSwitch(vi, m(2), 1)
ret = agb1500_setSwitch(vi, m(1), 1)
ret = agb1500_setSwitch(vi, m(0), 1)
check_err vi, ret ’13
sweep_meas vi, ret, m() ’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 sweep_meas subprogram (next page) to perform
staircase sweep 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.
Page view 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 207 208

Comments to this Manuals

No comments