Tsplink.writeport() - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Section 8: TSP command reference
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)
Also see
tsplink.initialize()
tsplink.node
(on page 8-234)

tsplink.writeport()

This function writes to all TSP-Link synchronization lines as a digital I/O port.
Type
TSP-Link accessible
Function
Yes
Usage
tsplink.writeport(data)
data
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).
The reset() function does not affect the present states of the trigger lines.
Example
tsplink.writeport(3)
Also see
tsplink.line[N].state
tsplink.readport()
tspnet.clear()
This function clears any pending output data from the instrument.
Type
TSP-Link accessible
Function
No
Usage
tspnet.clear(connectionID)
connectionID
8-236
Model 2450 Interactive SourceMeter® Instrument Reference Manual
(on page 8-231)
Affected by
Value to write to the port (0 to 7)
(on page 8-233)
(on page 8-235)
Affected by
The connection ID returned from tspnet.connect()
Read the state of the TSP-Link system. If it is online,
the output is:
online
Where saved
Default value
Sets the synchronization lines 1 and 2 high (binary 011).
Where saved
Default value
2450-901-01 Rev. B/September 2013

Advertisement

Table of Contents
loading

Table of Contents