3-12 Agilent B1500 VXIplug&play Driver User’s Guide, Edition 3
Programming Examples for Visual Basic Users
Multi Channel Spot Measurement
ret = agb1500_resetTimestamp(vi) ’34
check_err vi, ret
ret = agb1500_force(vi, pins(0), agb1500_VF_MODE, 0, ve, iecomp,
0)
ret = agb1500_force(vi, pins(1), agb1500_VF_MODE, 0, vb, ibcomp,
0)
ret = agb1500_force(vi, pins(2), agb1500_VF_MODE, 0, vc, iccomp,
0)
check_err vi, ret ’40
ret = agb1500_measureM(vi, mch(0), mode(0), range(0), md(0),
st(0), tm(0))
check_err vi, ret ’43
ret = agb1500_zeroOutput(vi, agb1500_CH_ALL)
check_err vi, ret ’46
display_data md(), st(), tm(), vi, ret, pins()
End Sub
Line Description
34 Resets time stamp.
37 to 39 Applies voltage to device.
42 Performs the multi channel spot measurement.
45 Sets the specified port to the zero output state.
35, 40, 43,
and 46
Calls the check_err subprogram (shown in Table 3-1) to check if
an error status is returned for the previous line.
48 Calls the display_data subprogram (next page) to display
measurement data.
50 End of the mspot_meas subprogram.