8: TSP command reference Model 2450 Interactive SourceMeter® Instrument
8-244 2450-901-01 Rev. B/September 2013
Example
deviceID = tspnet.connect("192.0.2.1")
if deviceID then
tspnet.termination(deviceID,
tspnet.TERM_LF)
Sets termination type for IP address
192.0.2.1 to TERM_LF.
Also see
tspnet.connect() (on page 8-237)
tspnet.disconnect() (on page 8-238)
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
Instrument reset
Usage
value = tspnet.timeout
tspnet.timeout = value
The timeout duration in seconds (0.001 to 30.000)
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
Sets the timeout duration to two seconds.
Also see
tspnet.connect() (on page 8-237)
tspnet.execute() (on page 8-239)
tspnet.read() (on page 8-241)