High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-105
Example
Deletes a user script named test8 from nonvolatile
memory and the global variable named
.
Also see
Deleting a user script using a remote interface (on page 13-10)
scriptVar.save() (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")
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
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
.
Also see
None
scriptVar.run()
This function runs a script.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
scriptVar.run()
scriptVar()
The name of the variable that references the script