Tspnet.write() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
Any output from previous commands is discarded.
This command does not wait for the script to complete.
If you do not want the script to do anything immediately, make sure the script only defines functions for later use.
Use the tspnet.execute() function to execute those functions at a later time.
If no name is specified, the script will be loaded as the anonymous script.
Example
tspnet.tsp.runscript(myconnection, "mytest",
"print([[start]]) for d = 1, 10 do print([[work]]) end print([[end]])")
Load and run a script entitled mytest on the TSP-enabled instrument connected with myconnection.
Also see
tspnet.execute()

tspnet.write()

This function writes a string to the remote instrument.
Type
TSP-Link accessible
Function
Yes
Usage
tspnet.write(connectionID, inputString)
connectionID
inputString
Details
The tspnet.write() function sends inputString to the remote instrument. It does not wait for command
completion on the remote instrument.
The Model 2651A sends inputString to the remote instrument exactly as indicated. The inputString must
contain any necessary new lines, termination, or other syntax elements needed to complete properly.
Because tspnet.write() does not process output from the remote instrument, do not send commands that
generate too much output without processing the output. This command can stop executing if there is too much
unprocessed output from previous commands.
Example
tspnet.write(myID, "runscript()\r\n")
Also see
tspnet.connect()
tspnet.read()
2651A-901-01 Rev. A / March 2011
(on page 7-363)
Affected by
The connection ID returned from tspnet.connect()
The string to be written
(on page 7-361)
(on page 7-365)
Where saved
Default value
Commands the remote instrument to run script
named "myID".
Section 7: Command reference
7-371

Advertisement

Table of Contents
loading

Table of Contents