Scriptvar.source - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual
Example 1
test8.save()
Example 2
test8.save("/usb1/myScript.tsp")
Also see
Working with scripts

scriptVar.source

This attribute contains the source code of a script.
Type
TSP-Link accessible
Attribute (R)
No
Usage
code = scriptVar.source
scriptVar
code
Details
The body of the script is a single string with lines separated by the new line character.
Example
print(test7.source)
Assuming a script named test7 was created on the instrument, this example retrieves the source code.
Output:
reset()
display.settext(display.TEXT1, "Text on User Display 1")
display.settext(display.TEXT2, "Text on line 2")
Also see
scriptVar.save()
2450-901-01 Rev. B/September 2013
(on page 7-5)
Affected by
Not applicable
The name of the variable that references the script that contains the source code
The body of the script
(on page 8-84)
Section 8: TSP command reference
Saves the script referenced by the variable
test8 to nonvolatile memory.
Saves the script referenced by the variable
test8 to a file named myScript.tsp on your
flash drive.
Where saved
Default value
Not saved
Not applicable
8-85

Advertisement

Table of Contents
loading

Table of Contents