Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-238
707B-901-01 Rev. A / August 2010
tspnet.tsp.rbtablecopy()
This function copies a reading buffer synchronous table from a remote instrument.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
array = tspnet.tsp.rbtablecopy(connectionID, name)
array = tspnet.tsp.rbtablecopy(connectionID, name, startIndex, endIndex)
array
A copy of the synchronous table
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 reads the data from a reading buffer on a remote instrument and returns an array of numbers or a
string representing the data.
startIndex
and
endIndex
specify the portion of the reading buffer to read. If no index is specified, the entire
buffer is copied.
This command is limited to transferring 50,000 readings at a time.
Example 1
t = tspnet.tsp.rbtablecopy(myconnection,
'myremotebuffername.readings', 1, 3)
print(t[1], t[2], t[3])
Output:
4.5653423423e-1
4.5267523423e-1
4.5753543423e-1
Example 2
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
Also see
None