Scriptvar.source - Keithley 2461 Reference Manual

1kw pulse mode interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2461 Interactive SourceMeter® Instrument Reference Manual
Details
The scriptVar.save() function saves a script to nonvolatile memory or a USB flash drive. The
root folder of the USB flash drive has the absolute path /usb1/.
If no filename is specified, the script is saved to internal nonvolatile memory. If a filename is
given, the script is saved to the USB flash drive.
If you set scriptVar to autoexec, the script is run when the instrument powers up. You must
delete the existing autoexec script before saving the new one. Note that performing a system reset
does not delete the autoexec script.
You can add the file extension, but it is not required. The only allowed extension is .tsp (see
Example 2).
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
code
scriptVar
Details
The body of the script is a single string with lines separated by the new line character.
2461-901-01 A/November 2015
(on page 7-5)
Affected by
Not applicable
The body of the script
The name of the variable that references the script that contains the source code
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
USB flash drive.
Where saved
Not applicable
Default value
Not applicable
8-101

Advertisement

Table of Contents
loading

Table of Contents