Tspnet.tsp.runscript() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 7: Command reference
Usage
table = tspnet.tsp.rbtablecopy(connectionID, name)
table = tspnet.tsp.rbtablecopy(connectionID, name, startIndex, endIndex)
table
connectionID
name
startIndex
endIndex
Details
This function reads the data from a reading buffer on a remote instrument and returns an array of numbers or a
string representing the data. The startIndex and endIndex parameters specify the portion of the reading
buffer to read. If no index is specified, the entire buffer is copied.
The function will return a table if the table is an array of numbers; otherwise a comma delimited string is returned.
This command is limited to transferring 50,000 readings at a time.
Example
t = tspnet.tsp.rbtablecopy(testConnection,
"testRemotebuffername.readings", 1, 3)
print(t[1], t[2], t[3])
Also see
None

tspnet.tsp.runscript()

This function loads and runs a script on a remote 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.
7-370
Model 2651A High Power System SourceMeter® Instrument Reference Manual
A copy of the synchronous table or a string
Integer value used as a handle for other tspnet commands
The full name of the reading buffer name and synchronous table to copy
Integer start value
Integer end value
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
Copies the specified readings table for buffer
items 1 through 3, then displays the first three
readings. Sample output:
4.56534e-01
4.52675e-01
4.57535e-01
Where saved
Default value
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents