Table 3-3
Programming Examples for Visual Basic Users
Multi Channel Spot Measurement
Multi Channel Spot Measurement
Table 3-3 explains example subprograms that enable/disable measurement channels
(perform_meas), perform the multi channel spot measurement (mspot_meas), and
display measurement result data (display_data). This example measures bipolar
transistor collector current and base current.
Multi Channel Spot Measurement Example
Sub perform_meas(vi As Long, ret As Long)
Dim pins(3) As Long
pins(0) = 1
pins(1) = 2
pins(2) = 4
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
mspot_meas vi, ret, pins()
ret = agb1500_setSwitch(vi, agb1500_CH_ALL, 0)
check_err vi, ret
End Sub
Line
1
Beginning of the perform_meas subprogram.
3 to 6
Declares variables, and defines the value.
8 to 10
Enables measurement channels.
13
Calls the mspot_meas subprogram (next page) to perform multi
channel spot measurement.
15
Disables measurement channels.
11 and 16
Calls the check_err subprogram (shown in Table 3-1) to check if
an error status is returned for the previous line.
18
End of the perform_meas subprogram.
3-10
Agilent B1500 VXIplug&play Driver User's Guide, Edition 3
'SMU port numbers
'SMU1: emitter
'SMU2: base
'SMU4: collector
Description
'1
'3
'8
'11
'13
'15
'18