Tspnet.timeout - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual
Details
This function sets and gets the termination character sequence that is used to indicate the end of a line for a
TSP-Net connection.
Using the termSequence parameter sets the termination sequence. The present termination sequence is
always returned.
For the termSequence parameter, use the same values listed in the table above for type. There are four
possible combinations, all of which are made up of line feeds (LF or 0x10) and carriage returns (CR or 0x13). For
TSP-enabled devices, the default is tspnet.TERM_LF. For devices that are not TSP-enabled, the default is
tspnet.TERM_CRLF.
Example
deviceID = tspnet.connect("192.0.2.1")
if deviceID then
tspnet.termination(deviceID,
tspnet.TERM_LF)
end
Also see
tspnet.connect()
tspnet.disconnect()

tspnet.timeout

This attribute sets the timeout value for the tspnet.connect(), tspnet.execute(), and tspnet.read()
commands.
Type
TSP-Link accessible
Attribute (RW)
No
Usage
value = tspnet.timeout
tspnet.timeout = value
value
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
Also see
tspnet.connect()
tspnet.execute()
tspnet.read()
2600BS-901-01 Rev. B / May 2013
(on page 7-367)
(on page 7-368)
Affected by
Instrument reset
Recall setup
The timeout duration in seconds (0.001 to 30.000)
(on page 7-367)
(on page 7-369)
(on page 7-370)
Section 7: TSP command reference
Sets termination type for IP address
192.0.2.1 to TERM_LF.
Where saved
Not saved
Sets the timeout duration to two seconds.
Default value
20.0 (20 s)
7-373

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents