![Keithley 2651A Скачать руководство пользователя страница 468](http://html1.mh-extra.com/html/keithley/2651a/2651a_reference-manual_661729468.webp)
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
Retrieve source code one line at a time
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
= s
criptVar
.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.