EasyManuals Logo

Tektronix Keithley SourceMeter 2470 Reference Manual

Tektronix Keithley SourceMeter 2470
995 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #927 background imageLoading...
Page #927 background image
2470
High Voltage SourceMeter Instrument Reference Manual Section 14:
TSP command reference
2470-901-01 Rev. A / May 2019 14-287
tspnet.tsp.runscript()
This function loads and runs a script on a remote TSP-enabled instrument.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
tspnet.tsp.runscript(connectionID, "name", "script")
connectionID
Integer value used as an identifier for other
tspnet
commands
name
The name that is assigned to the script
script
The body of the script as a string
Details
This function is appropriate only for TSP-enabled instruments.
This function downloads a script to a remote instrument and runs it. It automatically adds the
appropriate loadscript and endscript commands around the script, captures any errors,
and
r
eads back any prompts. No additional substitutions are done on the text.
The script is automatically loaded, compiled, and run.
Any output from previous commands is discarded.
This command does not wait for the script to complete.
If you do not want the script to do anything immediately, make sure the script only defines functions
for later use. Use the tspnet.execute() function to execute those functions later.
Example
tspnet.tsp.runscript(myConnection, "myTest",
"print([[start]]) for d = 1, 10 do print([[work]]) end print([[end]])")
Load and run a script entitled myTest on the TSP-enabled instrument connected with myConnection.
Also see
tspnet.execute() (on page 14-279)
tspnet.write()
This function writes a string to the remote instrument.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
tspnet.write(connectionID, "inputString")
connectionID
The connection ID returned from
tspnet.connect()
inputString
The string to be written

Table of Contents

Other manuals for Tektronix Keithley SourceMeter 2470

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley SourceMeter 2470 and is the answer not in the manual?

Tektronix Keithley SourceMeter 2470 Specifications

General IconGeneral
BrandTektronix
ModelKeithley SourceMeter 2470
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals