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.000000e+00
(binary 010)
Also see
tsplink.readbit() (on page 7-348)
tsplink.writebit()
(on page 7-359)
tsplink.writeport() (on page 7-359)
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