Section 11: TSP command reference Series 3700A System Switch/Multimeter Reference Manual
11-346 3700AS-901-01 Rev. D/June 2018
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 10-44)
Named scripts (on page 10-4)
script.new() (on page 11-344)
scriptVar.autorun (on page 11-348)
scriptVar.save() (on page 11-351)
script.restore()
This function restores a script that was removed from the run-time environment.
Usage
script.restore(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
Restores a script named test9 from
nonvolatile memory.
Also see
script.delete() (on page 11-343)