
Section 11: TSP command reference
Series 3700A System Switch/Multimeter Reference Manual
11-346
3700AS-901-01 Rev. D/June 2018
Example
NewAuto = script.newautorun("print('Hello from new auto run command')", 'NewAuto')
print(NewAuto.autorun)
print(NewAuto.name)
Creates a new script called
NewAuto
that automatically has the autorun attribute set to yes after it is created.
The
name
is set to
"NewAuto"
.
Output:
Hello from new auto run command
yes
NewAuto
Also see
Create a script using the script.new() command
(on page 10-45)
Global variables and the script.user.scripts table
(on page 11-344)
(on page 11-348)
(on page 11-351)
script.restore()
This function restores a script that was removed from the run-time environment.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
script.restore(
name
)
name
The name of the script to be restored
Details
This command copies the script from nonvolatile memory into the run-time environment. It also
creates a global variable with the same name as the name of the script.
Example
script.restore("test9")
Restores a script named
test9
from
nonvolatile memory.
Also see
(on page 11-343)