Series 2600 System SourceMeters User's Manual
Call send(Addr%, "localnode.prompts = 0",
intStatus)
The primary code that runs the script and retrieves the measurement results is
listed below. This code is executed when you click the Run Script (GPIB)
command button. When you run this script it will perform ten measurements and
send the readings to the PC. The results are displayed in the Data text box of the
GUI as shown in
The following command runs the script; can also use "MeasCurrScript()" form of
the command
Call send(Addr%, "MeasCurrScript.run()",
intStatus)
Do
strReturnMessage = udfGetTspResponse()
txtData.Text = txtData.Text & strReturnMessage
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 & str-
ReturnMessage &
vbCrLf
End If
Figure
3-8. TSP prompts are enabled prior to running the script
Return to
In this section:
Test Script Processor Interaction 3-19
-- Disable prompts.
--Get output from script.
2600S-900-01 Rev. A / May 2006