Tsplink.readport(); Tsplink.reset() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual

tsplink.readport()

This function reads the TSP-Link synchronization lines as a digital I/O port.
Type
TSP-Link accessible
Function
Yes
Usage
data = tsplink.readport()
data
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)
Also see
tsplink.readbit()
tsplink.writebit()
tsplink.writeport()

tsplink.reset()

This function initializes (resets) all nodes (instruments) in the TSP-Link system.
Type
TSP-Link accessible
Function
No
Usage
nodesFound = tsplink.reset()
nodesFound = tsplink.reset(expectedNodes)
nodesFound
expectedNodes
2651A-901-01 Rev. A / March 2011
Affected by
Numeric value returned indicating which register bits are set
(on page 7-348)
(on page 7-359)
(on page 7-359)
Affected by
The number of nodes actually found on the system
The number of nodes expected on the system, between 1 and 64
Where saved
Reads state of all three TSP lines.
Assuming Line 2 is set high, the output is:
2.000000e+00
(binary 010)
Where saved
Section 7: Command reference
Default value
Default value
7-349

Advertisement

Table of Contents
loading

Table of Contents