Tsplink.readbit(); Tsplink.readport() - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Section 7: Command reference
Also see
tsplink.reset()
tsplink.state
(on page 7-218)

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 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 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 3 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).
7-216
(on page 7-217)
Affected by
A custom variable that stores the state of the synchronization line
The trigger line (1 to 3)
(on page 7-216)
(on page 7-226)
Affected by
Numeric value returned indicating which register bits are set
Models 707B and 708B Switching Matrix Reference Manual
Where saved
Default value
Assume Line 3 is set high, and it is then read.
Output
1.000000e+00
Where saved
Default value
707B-901-01 Rev. A / August 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents