Settime() - 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
Details
This function writes the specified string to the serial port, where it can be read by connected equipment (for
example, a component handler).
No terminator characters are added to the data, and data is written exactly as specified by the data parameter.
Example
serial.write("1 2 3 4")
Also see
serial.read()

settime()

This function sets the real-time clock (sets present time of the system).
Type
TSP-Link accessible
Function
Yes
Usage
settime(time)
time
Details
This function sets the date and time of the instrument based on the time parameter (specified in UTC time).
UTC time is specified as the number of seconds since Jan 1, 1970, UTC. You can use UTC time from a local
time specification, or you can use UTC time from another source (for example, your computer).
Example
systemTime = os.time({year = 2010,
settime(systemTime)
Also see
gettimezone()
os.time()
settimezone()
2600BS-901-01 Rev. B / May 2013
(on page 7-176)
Affected by
The time in seconds since January 1, 1970 UTC
month = 3,
day = 31,
hour = 14,
min = 25})
(on page 7-98)
(on page 7-151)
(on page 7-178)
Section 7: TSP command reference
Write data string "1 2 3 4" to the serial port.
Where saved
Default value
Sets the date and time to Mar 31, 2010 at
2:25 pm.
7-177

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents