2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-107
Also see
(on page 7-34)
ConfigPulseIMeasureVSweepLin()
ConfigPulseIMeasureVSweepLog()
(on page 7-38)
(on page 7-40)
ConfigPulseVMeasureISweepLin()
ConfigPulseVMeasureISweepLog()
(on page 7-44)
io.close()
This function closes a file.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes (see
Details
)
Usage
io.close()
io.close(
file
)
file
The descriptor of the file to close
Details
If a file is not specified, the default output file closes.
Only
io.close()
, used without specifying a parameter, can be accessed from a remote node.
Example
testFile, testError = io.open("testfile.txt", "w")
if nil == testError then
testFile:write("This is my test file")
io.close(testFile)
end
Opens file
testfile.txt
for writing. If no errors were
found while opening, writes
"This is my test
file"
and closes the file.
Also see
(on page 7-109)
io.flush()
This function saves buffered data to a file.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
io.flush()
Details
You must use the
io.flush()
or
io.close()
functions to write data to the file system.