EasyManuals Logo

Tektronix KEITHLEY 2600B Series User Manual

Tektronix KEITHLEY 2600B Series
834 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 #507 background image
Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-186 2600BS-901-01 Rev. F/August 2021
Example
test7 = script.new("display.clear() display.settext('Hello from my test')",
"test7")
test7()
test7.save()
test7.list()
The above example code creates a script named test7 that displays text on the front panel and lists the script
with the following output:
loadscript test7
display.clear() display.settext("Hello from my test")
endscript
Also see
Load a script by sending commands over the remote interface (on page 8-4)
Retrieve source code one line at a time (on page 8-80)
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 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 is
removed from the runtime 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 still reference the script, but the names of the script and variables may not match.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Tektronix KEITHLEY 2600B Series Specifications

General IconGeneral
BrandTektronix
ModelKEITHLEY 2600B Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals