Section 7: Command reference Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-160 2651A-901-01 Rev. A / March 2011
scriptVar.list()
This function generates a script listing.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
scriptVar.list()
scriptVar
The name of variable that references the script
Details
This function generates output in the form of a sequence of response messages (one message for each line of
the script). It also generates output of the script control messages (loadscript or loadandrunscript, and
endscript).
Example
beep.list()
Generates output for the content of the script
named "beep."
Also see
Load a script by sending commands over the remote interface (on page 6-4)
Retrieve source code one line at a time
(on page 6-8)
scriptVar.name
This attribute contains the name of a script in the runtime environment.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW) No Not applicable Not applicable Not applicable
Usage
scriptVar.name = scriptName
scriptName = scriptVar.name
scriptVar
Name of the variable that references the script
scriptName
A string that represents the name of the script
Details
When setting the script name, this attribute renames the script that the variable scriptVar references.
This attribute must be either a valid Lua identifier or the empty string. Changing the name of a script changes the
index used to access the script in the script.user.scripts table. Setting the attribute to an empty string
removes the script from the table completely, and the script becomes an unnamed script.