Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-172 2601B-PULSE-901-01A April 2020
Example
data = serial.read(200)
print(data)
Read data from the serial port.
Output:
John Doe
The above output indicates that the string "John Doe" was read
from the serial port.
Also see
serial.write() (on page 11-172)
serial.write()
This function writes data to the serial port.
Usage
serial.write("data")
A string representing the data to write
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 11-171)
settime()
This function sets the real-time clock (sets present time of the system).
Usage
settime(time)
The time in seconds since January 1, 1970 UTC