Tsplink.readbit(); Tsplink.readport() - Keithley 3700A Series Reference Manual

System switch/multimeter
Hide thumbs Also See for 3700A Series:
Table of Contents

Advertisement

Section 11: TSP command reference

tsplink.readbit()

This function reads the state of a TSP-Link synchronization line.
Type
TSP-Link accessible
Function
Yes
Usage
data = tsplink.readbit(N)
data
N
Details
Returns a value of zero (0) if the line is low and 1 if the line is high.
Example
data = tsplink.readbit(3)
print(data)
Also see

tsplink.readport()

tsplink.writebit()
tsplink.readport()
This function reads the TSP-Link trigger 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 the value of bit 3 corresponds to line 3.
For example, a returned value of 2 has a binary equivalent of 010. This indicates that line 2 is high
(1), and that the other two lines are low (0).
Example
data = tsplink.readport()
print(data)
11-422
Affected by
The state of the synchronization line
The trigger line (1 to 3)
(on page 11-422)
(on page 11-432)
Affected by
Numeric value that indicates which lines are set
Series 3700A System Switch/Multimeter Reference Manual
Where saved
Assume line 3 is set high, and it is then read.
Output:
1.000000e+00
Where saved
Reads state of all three TSP-Link lines.
Assuming line 2 is set high, the output is:
2.000000e+00
(binary 010)
The format of the output may vary depending on the ASCII
precision setting.
Default value
Default value
3700AS-901-01 Rev. D/June 2018

Advertisement

Table of Contents
loading

Table of Contents