Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-245
fileVar:write()
This function writes data to a file.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
fileVar
:write(
data
)
fileVar
:write(
data1
,
data2
)
fileVar
:write(
data1
, ...,
datan
)
fileVar
The file descriptor variable
data
Write all data to the file
data1
The first data to write to the file
data2
The second data to write to the file
datan
The last data to write to the file
...
One or more entries (or values) separated by commas
Details
This function may buffer data until a flush (
fileVar
:flush()
or
io.flush()
) or close
(
fileVar
:close()
or
io.close()
) operation is performed.
Also see
(on page 9-27)
(on page 11-242)
(on page 11-242)
(on page 11-253)
(on page 11-253)
format.asciiprecision
This attribute sets the precision (number of digits) for all numbers returned in the ASCII format.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
No
Instrument reset
Recall setup
Create configuration script
Save setup
6
Usage
precision
= format.asciiprecision
format.asciiprecision =
precision
precision
A number representing the number of digits to be printed for numbers printed with
the
print()
,
printbuffer()
, and
printnumber()
functions; must be a
number between
1
and
16