Interactive SourceMeter® Instrument Reference Manual  Section 8: 
 
2450-901-01 Rev. B/September 2013  8-83 
 
script.delete() 
This function deletes a script from the run-time memory and nonvolatile memory. 
Type  TSP-Link accessible 
Affected by  Where saved  Default value 
   
Usage 
script.delete(scriptName) 
 
The string that represents the name of the script 
Details 
When a script is deleted, the global variable referring to this script is also deleted. 
Example 
 
Deletes a user script named test8 from 
nonvolatile memory and the global variable 
Also see 
Deleting a user script using a remote interface (on page 7-9) 
scriptVar.save() (on page 8-84) 
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) 
 
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 test8. 
Also see 
None