Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-226
707B-901-01 Rev. A / August 2010
tsplink.writebit()
This function sets a TSP-Link synchronization line high or low.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
tsplink.writebit(bit, data)
bit
The trigger line (1 to 3)
data
The value to write to the bit:
•
Low: 0
•
High: 1
Details
Use
tsplink.writebit()
and
tsplink.writeport()
to control the output state of the synchronization
line when trigger operation is set to
tsplink.TRIG_BYPASS
.
If the output line is write-protected by the
tsplink.writeprotect
attribute, this command is ignored.
The reset function does not affect the present states of the digital I/O lines.
Example
tsplink.writebit(3, 0)
Sets synchronization Line 3 low (0).
Also see
(on page 7-216)
(on page 7-216)
tsplink.writeport()
This function writes to all TSP-Link synchronization lines.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
tsplink.writeport(data)
data
Value to write to the port (0 to 7)
Details
The binary representation of
data
indicates the output pattern that is written to the I/O port. For example, a data
value of 2 has a binary equivalent of 010. Line 2 is set high (1), and the other two lines are set low (0).
Write protected lines are not changed (see
tsplink.writeprotect
(on page 7-227)).
The reset() function does not affect the present states of the digital I/O lines.