![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750462.webp)
Model 2657A High Power System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2657A-901-01 Rev. B/December 2012
7-149
Example 1
x = 10
print(x)
Example of an output response message:
1.01
Note that your output might be different if you set
your ASCII precision setting to a different value.
Example 2
x = 10
print(tostring(x))
Example of an output response message:
10
Also see
printbuffer()
This function prints data from tables or reading buffer subtables.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
printbuffer(
startIndex
,
endIndex
,
buffer1
)
printbuffer(
startIndex
,
endIndex
,
buffer1
,
buffer2
)
printbuffer(
startIndex
,
endIndex
,
buffer1
, ...,
bufferN
)
startIndex
Beginning index of the buffer to print
endIndex
Ending index of the buffer to print
buffer1
First table or reading buffer subtable to print
buffer2
Second table or reading buffer subtable to print
bufferN
The last table or reading buffer subtable to print
...
One or more tables or reading buffer subtables separated with
commas
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 used in overlapped commands that have not yet completed (at least to the
desired index), this function outputs 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 pass a reading buffer instead of a reading buffer subtable, the default subtable for that reading buffer will
be used.
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.
Содержание 2657A
Страница 3: ......