
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-239
Example
testID = tspnet.connect("192.0.2.0")
-- Use the connection
tspnet.disconnect(testID)
Create a TSP-Net session.
Close the session.
Also see
(on page 8-237)
tspnet.execute()
This function sends a command string to the remote device.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
tspnet.execute(
connectionID
,
commandString
)
value1
= tspnet.execute(
connectionID, commandString, formatString
)
value1, value2
= tspnet.execute(
connectionID, commandString, formatString
)
value1, ..., valuen
= tspnet.execute(
connectionID, commandString, formatString
)
connectionID
The connection ID returned from
tspnet.connect()
commandString
The command to send to the remote device
value1
The first value decoded from the response message
value2
The second value decoded from the response message
valuen
The nth value decoded from the response message; there is one return value for
each format specifier in the format string
...
One or more values separated with commas
formatString
Format string for the output