EasyManua.ls Logo

Keithley 2600B

Keithley 2600B
897 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Series 2600B
System SourceMeter® Instrument Reference Manual Section 7:
TSP command reference
2600BS-901-01 Rev. C / August 2016 7-99
fileVar:seek()
This function sets and gets a file's current position.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
position, errorMsg = fileVar:seek()
position, errorMsg = fileVar:seek(whence)
position, errorMsg = fileVar:seek(whence, offset)
position
The new file position, measured in bytes from the beginning of the file
errorMsg
A string containing the error message
fileVar
The file descriptor variable
whence
A string indicating the base against which offset is applied; the default is
"cur"
offset
The intended new position, measured in bytes from a base indicated by
whence (default is
0
)
Details
The whence parameters may be any of the following:
"set": Beginning of file
"cur": Current position
"end": End of file
If an error is encountered, it is logged to the error queue, and the command returns nil and the error
string.
Also see
io.open() (on page 7-119)

Table of Contents

Related product manuals