Section 11: TSP command reference Series 3700A System Switch/Multimeter Reference Manual
11-350 3700AS-901-01 Rev. D/June 2018
Changing the name of a script does not change the name of any variables that reference that script.
The variables will still reference the script, but the names of the script and variables may not match.
Example
test7 = script.new("display.clear() display.settext('Hello from my test')", "")
test7()
print(test7.name)
test7.name = "test7"
print(test7.name)
test7.save()
This example calls the script.new() function to create a script with no name, runs the script, names the
script "test7", and then saves the script in nonvolatile memory.
Also see
Rename a script (on page 10-48)
script.new() (on page 11-344)
scriptVar.save() (on page 11-351)
scriptVar.run()
This function runs a script.
Usage
scriptVar.run()
scriptVar()
The name of the variable that references the script
Details
The scriptVar.run() function runs the script referenced by scriptVar. You can also run the
script by using scriptVar().
Example
Runs the script referenced by the variable test8.