
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-323
Example
data = tsplink.readport()
print(data)
Reads state of all three TSP-Link lines.
Assuming line 2 is set high, the output is:
2.00
(binary 010)
The format of the output may vary depending on the ASCII
precision setting.
Also see
Triggering using TSP-Link synchronization lines
(on page 3-155)
(on page 8-320)
(on page 8-323)
tsplink.state
This attribute describes the TSP-Link online state.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (R)
Yes
Not applicable
Not applicable
Not applicable
Usage
state
= tsplink.state
state
TSP-Link state (
online
or
offline
)
Details
When the instrument power is first turned on, the state is
offline
. After
tsplink.initialize()
or
tsplink.reset()
is successful, the state is
online
.
Example
state = tsplink.state
print(state)
Read the state of the TSP-Link system. If it is online,
the output is:
online
Also see
(on page 8-318)
(on page 8-322)
tsplink.writeport()
This function writes to all TSP-Link synchronization lines as a digital I/O port.
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)