Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Section 8: TSP command reference
DMM7510-901-01 Rev. B / May 2015
8-363
Example
times =
tspnet.tsp.rbtablecopy(testTspdevice,
"testRemotebuffername.timestamps", 1, 3)
print(times)
Copy the specified timestamps table for items
1 through 3, then display the table. Example
output:
01/01/2011
10:10:10.0000013,01/01/2011
10:10:10.0000233,01/01/2011
10:10:10.0000576
Also see
None
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
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.
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
(on page 8-355)