8: TSP command reference  Model DMM7510 7½ Digit Graphical Sampling Multimeter 
 
8-352  DMM7510-901-01 Rev. B / May 2015 
 
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) 
The format of the output may vary depending on the ASCII 
Also see 
Triggering using TSP-Link synchronization lines (on page 3-109) 
tsplink.line[N].state (on page 8-350) 
tsplink.writeport() (on page 8-352) 
 
tsplink.state 
This attribute describes the TSP-Link online state. 
Type  TSP-Link accessible  Affected by  Where saved  Default value 
Usage 
state = tsplink.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 
 
print(state) 
Read the state of the TSP-Link system. If it is online, 
the output is: 
Also see 
tsplink.node (on page 8-351) 
 
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 
   
Usage 
tsplink.writeport(data) 
 
Value to write to the port (0 to 7)