Os.rename(); Os.time() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual

os.rename()

This function renames an existing file or directory.
Type
TSP-Link accessible
Function
Yes
Usage
success, msg = os.rename(oldname, newname)
success
msg
oldname
newname
Details
If this function fails, it returns nil (for success) and an error message string (for msg).
Example
os.rename("testFile", "exampleFile")
Also see
os.remove()

os.time()

This function generates a time value in UTC time.
Type
TSP-Link accessible
Function
Yes
Usage
utcTime = os.time()
utcTime = os.time(timespec)
utcTime
timespec
2600BS-901-01 Rev. B / May 2013
Affected by
A success indicator (true or nil)
A message value (nil or an error message)
String representing the name of the file or directory to rename
String represent the new name of the file or directory
(on page 7-150)
Affected by
Time value in UTC time
The date and time (year, month, day, hour, and minute)
Section 7: TSP command reference
Where saved
Default value
Changes the name of the existing file
testFile to the name exampleFile.
Where saved
Default value
7-151

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents