Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-153
print()
This function generates a response message.
Usage
print(value1)
print(value1, value2)
print(value1, ..., valueN)
The first argument to output
The second argument to output
The last argument to output
One or more values separated with commas
Details
TSP-enabled instruments do not have inherent query commands. Like other scripting environments,
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
Example of an output response message:
10
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
format.asciiprecision (on page 11-89)