Models 707B and 708B Switching Matrix Reference Manual
Section 7: TSP command reference
707B-901-01 Rev. B / January 2015
7-53
Also see
(on page 7-53)
(on page 7-61)
(on page 7-62)
(on page 2-7)
digio.readport()
This function reads the digital I/O port.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
data
= digio.readport()
data
The present value of the input lines on the digital I/O port
Details
The binary equivalent of the returned value indicates the value of the input lines on the I/O port. The
least significant bit (bit B1) of the binary number corresponds to line 1; bit B14 corresponds to line 14.
For example, a returned value of 170 has a binary equivalent of 000000010101010, which indicates
that lines 2, 4, 6, and 8 are high (1), and the other 10 lines are low (0).
Example
data = digio.readport()
print(data)
Assume lines 2, 4, 6, and 8 are set high when
the I/O port is read.
Output:
1.702
This is binary 10101010
Also see
(on page 7-52)
(on page 7-61)
(on page 7-62)
(on page 2-7)
digio.trigger[N].assert()
This function asserts a trigger pulse on one of the digital I/O lines.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
digio.trigger[
N
].assert()
N
Digital I/O trigger line (1 to 14)