Tspnet.tsp.runscript(); Tspnet.write() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 7: TSP command reference

tspnet.tsp.runscript()

This function loads and runs a script on a remote TSP-enabled instrument.
Type
TSP-Link accessible
Function
Yes
Usage
tspnet.tsp.runscript(connectionID, script)
tspnet.tsp.runscript(connectionID, name, script)
connectionID
name
script
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 reads 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 at a later time.
If no name is specified, the script is loaded as the anonymous script.
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()

tspnet.write()

This function writes a string to the remote instrument.
Type
TSP-Link accessible
Function
No
Usage
tspnet.write(connectionID, inputString)
connectionID
inputString
7-376
Affected by
Integer value used as an identifier for other tspnet commands
The name that is assigned to the script
The body of the script as a string
(on page 7-369)
Affected by
The connection ID returned from tspnet.connect()
The string to be written
Series 2600B System SourceMeter® Instrument Reference Manual
Where saved
Where saved
Default value
Default value
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents