Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-194 2600BS-901-01 Rev. F/August 2021
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
Write data string "1 2 3 4" to the serial port.
Also see
serial.read() (on page 9-193)
settime()
This function sets the real-time clock (sets present time of the system).
The time in seconds since January 1, 1970 UTC
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 = 2020,
month = 3,
day = 31,
hour = 14,
min = 25})
settime(systemTime)
Sets the date and time to Mar 31, 2020 at 2:25 pm.
Also see
gettimezone() (on page 9-107)
os.time() (on page 9-169)
settimezone() (on page 9-195)