2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-105
Example
script.delete("test8")
Deletes a user script named
test8
from nonvolatile
memory and the global variable named
test8
.
Also see
Deleting a user script using a remote interface
(on page 14-106)
script.load()
This function creates a script from a specified file.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
script.load("
file
")
scriptVar
= script.load("
file
")
file
A string that contains 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
scriptVar
The created script; a global variable with this name is used to reference the script
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/
.
Example
test8 = script.load("/usb1/testSetup.tsp")
Loads the script with the file name
testSetup.tsp
that is on the USB flash
drive and names it
test8
.
Also see
None
scriptVar.run()
This function runs a script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
scriptVar
.run()
scriptVar
()
scriptVar
The name of the variable that references the script