Keithley SourceMeter 2611 User Manual page 71

Hide thumbs Also See for SourceMeter 2611:
Table of Contents

Advertisement

Series 2600 System SourceMeters User's Manual
The primary code that calls the function and retrieves the measurement results is
listed below. TSP prompts are enabled prior to calling the function. This code is
executed when you click the Call Function (GPIB) command button. In this
example, the function performs ten current measurements and sends the
readings to the PC because "ntimes" is set to 10 when the function is called. The
results are displayed in the Data text box as shown in
would be just as easy to take one or 100 readings simply by calling the function
with a different value for "ntimes," for example, MeasCurr(100). You can pass
parameters to a function, but not to a script. However, you must initially run a
script to create a function. Refer to the Series 2600 Reference Manual for more
information about scripts and functions.
Call send(Addr%, "MeasCurr(10)", intStatus)
Do
strReturnMessage = udfGetTspResponse()
txtData.Text = txtData.Text & strReturnMessage &
vbCrLf
Loop Until Left(strReturnMessage, 3) = "TSP"
If strReturnMessage = "TSP?" Then
txtStatusDesc.Text = "Error Occurred"
Call send(Addr%, "print(errorqueue.next()",
intStatus)
strReturnMessage = udfGetTspResponse()
txtStatusDesc.Text = txtStatusDesc.Text & strRe-
turnMessage & vbCrLf
End If
Test Script Processor Interaction 3-23
Return to
In this section:
Figure
3-10. Note that it
--Call function with ntimes=10
and then enter data.
--Get output from function.
--Take appropriate action
based on error message.
2600S-900-01 Rev. A / May 2006

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sourcemeter 2602Sourcemeter 2612Sourcemeter 2601

Table of Contents