Series 2600 System SourceMeters User’s Manual
Test Script Processor Interaction 3-23
Return to
2600S-900-01 Rev. A / May 2006
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
. Note that it
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)
--Call function with ntimes=10
and then enter data.
Do
--Get output from function.
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
--Take appropriate action
based on error message.
Содержание SourceMeter 2611
Страница 103: ...W What is a script 3 2...
Страница 104: ......
Страница 106: ......
Страница 107: ......