Tektronix Keithley 2651A Reference Manual page 556

High power system sourcemeter instrument
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
scriptVar.source
This attribute contains the source code of a script.
Type
TSP-Link accessible
Attribute (RW)
No
(see Details)
Usage
code = scriptVar.source
scriptVar.source = nil
scriptVar
code
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()
2651A-901-01 Rev. C October 2021
Affected by
Not applicable
The name of the variable that references the script that contains the source code
A string that contains the body of the script
(on page 7-207)
Section 7: TSP command reference
Where saved
Default value
Not saved
Not applicable
7-211

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Keithley 2651A and is the answer not in the manual?

Table of Contents