Script.delete(); Script.load() - Keithley 2461 Reference Manual

1kw pulse mode interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2461 Interactive SourceMeter® Instrument Reference Manual

script.delete()

This function deletes a script from the run-time memory and nonvolatile memory.
Type
TSP-Link accessible
Function
No
Usage
script.delete(scriptName)
scriptName
Details
When a script is deleted, the global variable referring to this script is also deleted.
You must delete an existing script before you can use the name of that script again. Scripts are not
automatically overwritten.
Example
script.delete("test8")
Also see
Deleting a user script using a remote interface
scriptVar.save()

script.load()

This function creates a script from a specified file.
Type
TSP-Link accessible
Function
No
Usage
script.load(file)
scriptVar = script.load(file)
file
scriptVar
Details
The named that is used for scriptVar must not already exist as a global variable. In addition, the
scriptVar name must be a global reference and not a local variable, table, or array.
For external scripts, the root folder of the USB flash drive has the absolute path /usb1/.
2461-901-01 A/November 2015
Affected by
A string that represents the name of the script
(on page 8-100)
Affected by
The path and file name of the script file to load; if scriptVar is not defined,
this name is used as the global variable name for this script
The created script; a global variable with this name is used to reference the
script
Where saved
Deletes a user script named test8 from
nonvolatile memory and the global variable
named test8.
(on page 7-9)
Where saved
Section 8: TSP command reference
Default value
Default value
8-99

Advertisement

Table of Contents
loading

Table of Contents