14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-276 2470-901-01 Rev. A / May 2019
tsplink.writeport()
This function writes to all TSP-Link synchronization lines as a digital I/O port.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
tsplink.writeport(data)
Value to write to the port (0 to 7)
Details
The binary representation of data indicates the output pattern that is written to the I/O port. For
example, a data value of 2 has a binary equivalent of 010. Line 2 is set high (1), and the other two
lines are set low (0).
The reset() function does not affect the present states of the trigger lines.
Example
Sets the synchronization lines 1 and 2 high (binary 011).
Also see
tsplink.line[N].state (on page 14-273)
tspnet.clear()
This function clears any pending output data from the instrument.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
tspnet.clear(connectionID)
The connection ID returned from tspnet.connect()
Details
This function clears any pending output data from the device. No data is returned to the caller and no
data is processed.