User manual
Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-308 3700S-901-01 Rev. C / July 2008
tspnet.tsp.rbtablecopy()
Example
table = tspnet.tsp.rbtablecopy(mytspdevice,
'myremotebuffername.readings', 1, 3)
print(table[1], table[2], table[3])
Output:
4.5653423423e-1 4.5267523423e-1 4.5753543423e-1
times = tspnet.tsp.rbtablecopy(mytspdevice,
'myremotebuffername.timestamps', 1, 3)
print(times)
Output
01/01/2008 10:10:10.0000013,01/01/2008
10:10:10.0000233,01/01/2008 10:10:10.0000576
tspnet.tsp.runscript()
Function
Load and runs a script on a device.
Usage
tspnet.tsp.runscript(<connection id>, [<name>,] <script>)
connection id: Integer value used as a handle for other tspnet commands
name: Optional parameter name from a listed group
script: The actual script itself as a string, enclosed in quotes
Remarks
This convenience command downloads a script to a device and runs it. It automatically
adds the appropriate loadscript and endscript 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. If there are no runnable lines
(contains only functions), running has no effect.
To load only and run at a later time, simply make sure the script contains only
functions. Use tspnet.execute() to execute those functions at a later time.
This command is appropriate only for TSP
TM
-enabled devices.
If no name is specified, one will be generated internally.
Errors:
Invalid Specified Connection
Write Failed, Timeout
Write Failed
Read Failed, Timeout
Read Failed, Aborted
Read Failed
Remote Error, <remote error generated by command>
Example
tspnet.tsp.runscript(mytspdevice, 'mytest',
'print([[start]]) for d = 1,10 do print([[work]]) end
print[[end]]')