Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Section 8: TSP command reference
DMM7510-901-01 Rev. B / May 2015
8-231
Example
opc()
waitcomplete()
print("1")
Output:
1
Also see
(on page 1)
(on page 8-368)
print()
This function generates a response message.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
print(
value1
)
print(
value1, value2
)
print(
value1, ..., valueN
)
value1
The first argument to output
value2
The second argument to output
valueN
The last argument to output
...
One or more values separated with commas
Details
TSP-enabled instruments do not have inherent query commands. Like any other scripting
environment, the
print()
command and other related
print()
commands generate output. The
print()
command creates one response message.
The output from multiple arguments is separated with a tab character.
Numbers are printed using the
format.asciiprecision
attribute. If you want use Lua formatting,
print the return value from the
tostring()
function.
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 = true
print(tostring(x))
Example of an output response message:
true
Also see