EasyManuals Logo

Keithley 2657A User Manual

Keithley 2657A
805 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #659 background imageLoading...
Page #659 background image
Section 7: TSP command reference Model 2657A High Power System SourceMeter® Instrument Reference Manual
7-346 2657A-901-01 Rev. B/December 2012
tsplink.readbit()
This function reads the state of a TSP-Link synchronization line.
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.000000e+00
Also see
tsplink.readport() (on page 7-346)
tsplink.writebit()
(on page 7-356)
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 that indicates 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. This indicates that line 2 is high (1), and that the other two lines are low (0).
Example
data = tsplink.readport()
print(data)
Reads state of all three TSP-Link lines.
Assuming line 2 is set high, the output is:
2.000000e+00
(binary 010)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2657A and is the answer not in the manual?

Keithley 2657A Specifications

General IconGeneral
BrandKeithley
Model2657A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals