
Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-139
Usage
printbuffer(startIndex, endIndex, buffer1)
printbuffer(startIndex, endIndex, buffer1, buffer2)
printbuffer(startIndex, endIndex, buffer1, …, bufferN)
startIndex
Beginning index of the buffer that is to be printed
endIndex
Ending index of the buffer that is to be printed
buffer1, buffer2, bufferN
Tables or reading buffer subtables that are to be printed
Details
The correct usage of this function for a buffer containing
n
elements is:
1
≤
startIndex
≤
endIndex
≤
n
Where
n
refers to the index of the last entry in the tables to be printed.
If
endIndex
<
startIndex
or
n
<
startIndex
, no data is printed. If
startIndex
≤
1, 1 is used as
startIndex
. If
n
<
endIndex
,
n
is used as
endIndex
.
When any given reading buffers are being used in overlapped commands that have not yet completed, at least to
the desired index, this function returns data as it becomes available.
When there are outstanding overlapped commands to acquire data,
n
refers to the index that the last entry in the
table will have after all the measurements have completed.
If you do not specify a subtable in a reading buffer, default subtables are automatically used.
At least one table or subtable must be specified.
This command generates a single response message that contains all data. The response message is stored in
the output queue.
The
format.data
attribute controls the format of the response message.
Example
format.data = format.ASCII
format.asciiprecision = 6
printbuffer(1, rb1.n, rb1)
This assumes that
rb1
is a valid reading buffer in the runtime environment.
Example of returned data (
rb1.readings
):
4.07205e-05, 4.10966e-05, 4.06867e-05, 4.08865e-05, 4.08220e-05, 4.08988e-05,
4.08250e-05, 4.09741e-05, 4.07174e-05, 4.07881e-05
Also see
(on page 7-94)
(on page 7-138)