Scriptvar.list(); Scriptvar.name - Keithley 2651A Reference Manual

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

Advertisement

Section 7: Command reference

scriptVar.list()

This function generates a script listing.
Type
TSP-Link accessible
Function
No
Usage
scriptVar.list()
scriptVar
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()
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
Attribute (RW)
No
Usage
scriptVar.name = scriptName
scriptName = scriptVar.name
scriptVar
scriptName
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.
7-160
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Affected by
The name of variable that references the script
(on page 6-8)
Affected by
Not applicable
Name of the variable that references the script
A string that represents the name of the script
Where saved
Default value
Generates output for the content of the script
named "beep."
(on page 6-4)
Where saved
Default value
Not applicable
Not applicable
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents