Series 2600B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2600BS-901-01 Rev. B / May 2013
7-353
tsplink.readbit()
This function reads the state of a TSP-Link synchronization line. This function is not available on the Models
2604B/2614B/2634B.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
data
= tsplink.readbit(
N
)
data
The state of the synchronization line
N
The trigger line (1 to 3)
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)
Assume line 3 is set high, and it is then read.
Output:
1.00
Also see
tsplink.readport()
(on page 7-353)
tsplink.writebit()
(on page 7-364)
tsplink.readport()
This function reads the TSP-Link synchronization lines as a digital I/O port. This function is not available on the
Models 2604B/2614B/2634B.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
data
= tsplink.readport()
data
Numeric value that indicates which lines 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 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).
Содержание System SourceMeter 2601B
Страница 841: ......