8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-78 2450-901-01 Rev. B/September 2013
Example 1
print(x)
Example of an output response message:
1.00000e+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
format.asciiprecision (on page 8-62)
printbuffer()
This function prints data from tables or reading buffer subtables.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
printbuffer(startIndex, endIndex, bufferVar)
printbuffer(startIndex, endIndex, bufferVar, bufferVar2)
printbuffer(startIndex, endIndex, bufferVar, ..., bufferVarN)
Beginning index of the buffer to print; this must be more than one
and less than
endIndex
Ending index of the buffer to print; this must be more than
startIndex and less than the index of the last entry in the tables
Name of first table or reading buffer subtable to print; may be a
default buffer (defbuffer1 or defbuffer2) or a user-defined
Second table or reading buffer subtable to print; may be a default
buffer (
or
) or a user-defined buffer
The last table or reading buffer subtable to print; may be a default
buffer (
or
) or a user-defined buffer
One or more tables or reading buffer subtables separated with
commas
Details
If startIndex is set to less than 1 or if endIndex is more than the size of the index, 9.910000e+37 is returned
for each value outside the allows index and an event is generated.
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.