EasyManuals Logo

Tektronix Keithley 2601B-PULSE Reference Manual

Tektronix Keithley 2601B-PULSE
849 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 #525 background imageLoading...
Page #525 background image
Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-167
Example 1
test8.save()
Saves the script referenced by the variable
test8 to nonvolatile memory.
Example 2
test8.save("/usb1/myScript.tsp")
Saves the script referenced by the variable
test8 to a file named myScript.tsp on
your USB flash drive.
Also see
Save a user script (on page 10-10)
scriptVar.source
This attribute contains the source code of a script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
(see Details)
No
Not applicable
Not saved
Not applicable
Usage
code = scriptVar.source
scriptVar.source = nil
scriptVar
The name of the variable that references the script that contains the source code
code
A string that contains the body of the script
Details
The loadscript or loadandrunscript and endscript keywords are not included in the source
code.
The body of the script is a single string with lines separated by the new line character.
The instrument automatically stores the source for all scripts that are loaded on the instrument. To
free up memory or to obfuscate the code, assign nil to the source attribute of the script. Although
this attribute is writable, it can only be set to the nil value.
Example
test7 = script.new("display.clear() display.settext('Hello from my test')", "")
print(test7.source)
This example creates a script called test7 that displays a message on the front panel and retrieves the source
code.
Output:
display.clear() display.settext('Hello from my test')
Also see
scriptVar.list() (on page 11-164)

Table of Contents

Other manuals for Tektronix Keithley 2601B-PULSE

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley 2601B-PULSE and is the answer not in the manual?

Tektronix Keithley 2601B-PULSE Specifications

General IconGeneral
BrandTektronix
ModelKeithley 2601B-PULSE
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals