EasyManuals Logo
Home>Keithley>Measuring Instruments>2600B

Keithley 2600B User Manual

Keithley 2600B
897 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #523 background imageLoading...
Page #523 background image
Section
7: TSP command reference Series 2600B System SourceMeter® Instrument
Reference Manual
7-184 2600BS-901-01 Rev. C / August 2016
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 that is 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.
As long as there are variables referencing an unnamed script, the script can be accessed through
those variables. When all variables that reference an unnamed script are removed, the script will be
removed from the run-time environment.
If the new name is the same as a name that is already used for another script, the name of the other
script is set to an empty string, and that script becomes unnamed.
Changing the name of a script does not change the name of any variables that reference that script.
The variables will still reference the script, but the names of the script and variables may not match.
Example
test7 = script.new("display.clear() display.settext('Hello from my test')", "")
test7()
print(test7.name)
test7.name = "test7"
print(test7.name)
test7.save()
This example calls the
script.new()
function to create a script with no name, runs the script, names the
script "test7", and then saves the script in nonvolatile memory.
Also see
Rename a script (on page 6-41)
script.new() (on page 7-178)
scriptVar.save() (on page 7-186)
scriptVar.run()
This function runs a script.
Type TSP-Link accessible
Affected by Where saved Default value
Function
No
Usage
scriptVar.run()
scriptVar()
scriptVar
The name of the variable that references the script

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2600B and is the answer not in the manual?

Keithley 2600B Specifications

General IconGeneral
BrandKeithley
Model2600B
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals