Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 7: Command reference
2651A-901-01 Rev. A / March 2011
7-145
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.