Section 14: TSP command reference
2470 High Voltage SourceMeter Instrument Reference Manual
14-286
2470-901-01 Rev. A /
May
2019
Example
tspnet.tsp.abortonconnect = 0
Configure the instrument so that it does not
send an abort command when connecting to
a TSP-enabled instrument.
Also see
(on page 14-277)
tspnet.tsp.rbtablecopy()
This function copies a reading buffer synchronous table from a remote instrument to a TSP-enabled instrument.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
table
= tspnet.tsp.rbtablecopy(
connectionID
, "
name
")
table
= tspnet.tsp.rbtablecopy(
connectionID
, "
name
",
startIndex
,
endIndex
)
table
A copy of the synchronous table or a string
connectionID
Integer value used as a handle for other
tspnet
commands
name
The full name of the reading buffer name and synchronous table to copy
startIndex
Integer start value
endIndex
Integer end value
Details
This function is only appropriate for TSP-enabled instruments.
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 returns 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
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/2015
10:10:10.0000013,01/01/2015
10:10:10.0000233,01/01/2015
10:10:10.0000576
Also see
None