![Keithley 2651A Reference Manual Download Page 657](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729657.webp)
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 7: Command reference
2651A-901-01 Rev. A / March 2011
7-349
tsplink.readport()
This function reads the TSP-Link synchronization lines as a digital I/O port.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
data
= tsplink.readport()
data
Numeric value returned indicating which register bits are set
Details
The binary equivalent of the returned value indicates the input pattern on the I/O port. The least significant bit of
the binary number corresponds to Line 1 and Bit B3 corresponds to Line 3. For example, a returned value of 2
has a binary equivalent of 010. Line 2 is high (1), and the other 2 lines are low (0).
Example
data = tsplink.readport()
print(data)
Reads state of all three TSP lines.
Assuming Line 2 is set high, the output is:
2.00
(binary 010)
Also see
(on page 7-348)
tsplink.reset()
This function initializes (resets) all nodes (instruments) in the TSP-Link system.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
nodesFound
= tsplink.reset()
nodesFound
= tsplink.reset(
expectedNodes
)
nodesFound
The number of nodes actually found on the system
expectedNodes
The number of nodes expected on the system, between 1 and 64