Section 8: TSP command reference
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
8-236
DMM7510-901-01 Rev. B / May 2015
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
Function
No
Usage
script.delete(
scriptName
)
scriptName
A string that represents the name of the script
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")
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 7-9)
(on page 8-238)
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
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/
.