
2600AS-901-01 Rev. B / September 2008
Return to
8-9
Series 2600A System SourceMeter® Instruments Reference Manual
Section 8: Digital I/O
Table 8-3
Digital I/O bit weight.
Remote TSP-Link synchronization line commands
Commands that control and access the TSP-Link synchronization port are summarized in
for complete details on these commands. See
hexadecimal values used to control and access the digital I/O port and individual lines.
Use the commands in
to perform basic steady-state digital I/O operations, for example,
you can program the Series 2600A to read and write to a specific TSP-Link synchronization line or
to the entire port.
NOTE The TSP-Link synchronization lines can be used for both input and
output. You must write a 1 to all TSP-Link synchronization lines that
are used as inputs.
Table 8-4
Remote synchronization line commands
Programming example
The commands below set bit 1 of the I/O port high, and then read the entire port value.
tsplink.trigger[1].mode = tsplink.TRIG_BYPASS
-- Set bit 1 high.
tsplink.writebit(1,1)
-- Read I/O port.
data = tsplink.readport()
Line #
Bit
Decimal
weighting
Hexadecimal
weighting
1
2
3
B1
B2
B3
1
2
4
0x0001
0x0002
0x0004
Command
Description
tsplink.readbit(bit)
tsplink.readport()
tsplink.writebit(bit, data)
tsplink.writeport(data)
tsplink.writeprotect = mask
Reads one digital I/O input line
Read the digital I/O port
Writes data to one digital I/O line
Writes data to the digital I/O port
Write protect mask to the digital I/O port