Series 2600 System SourceMeters User’s Manual Test Script Processor Interaction 3-19
Return to In this section: 2600S-900-01 Rev. A / May 2006
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
Figure 3-8. TSP prompts are enabled prior to running the script
The following command runs the script; can also use "MeasCurrScript()" form of
the command
Call send(Addr%, "localnode.prompts = 0",
intStatus)
--
Disable prompts.
Call send(Addr%, "MeasCurrScript.run()",
intStatus)
--Get output from script.
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