Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-376
2606B-901-01 Rev. B / May 2018
Example
deviceID = tspnet.connect("192.0.2.1")
if deviceID then
tspnet.termination(deviceID, tspnet.TERM_LF)
end
Sets termination type for IP address
192.0.2.1 to
TERM_LF
.
Also see
(on page 7-369)
(on page 7-371)
tspnet.timeout
This attribute sets the timeout value for the
tspnet.connect()
,
tspnet.execute()
, and
tspnet.read()
commands.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
No
Instrument reset
Recall setup
Not saved
20.0 (20 s)
Usage
value
= tspnet.timeout
tspnet.timeout =
value
value
The timeout duration in seconds (1 ms to 30.0 s)
Details
This attribute sets the amount of time the
tspnet.connect()
,
tspnet.execute()
, and
tspnet.read()
commands will wait for a response.
The time is specified in seconds. The timeout may be specified to millisecond resolution, but is only
accurate to the nearest 10 ms.
Example
tspnet.timeout = 2.0
Sets the timeout duration to 2 s.
Also see
(on page 7-369)
(on page 7-371)
(on page 7-373)