Section 7: Command reference
printnumber()
This function prints numbers using the configured format.
Type
TSP-Link accessible
Function
No
Usage
printnumber(value)
printnumber(value, value2, ..., value_N)
value, value2, value_N
Details
There are multiple ways to use this function, depending on how many numbers are to be printed.
This function prints the given numbers using the data format specified by format.data,
format.asciiprecision, and other associated attributes.
At least one number must be given.
Example
format.asciiprecision = 10
x = 2.54
printnumber(x)
format.asciiprecision = 3
printnumber(x, 2.54321, 3.1)
Also see
format.asciiprecision
format.byteorder
format.data
(on page 7-94)
print()
(on page 7-138)
printbuffer()
(on page 7-138)
reset()
This function resets commands to their default settings.
Type
TSP-Link accessible
Function
No
Usage
reset()
reset(system)
system
7-140
Affected by
(on page 7-93)
(on page 7-93)
Affected by
true
: If the node is the master, the entire system is reset
: Only the local group is reset
false
Models 707B and 708B Switching Matrix Reference Manual
Where saved
Numbers to print in the configured format
Output:
2.540000000e+00
2.54e+00, 2.54e+00, 3.10e+00
Where saved
Default value
Default value
707B-901-01 Rev. A / August 2010