
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
(on page 11-344)
(on page 11-351)
scriptVar.run()
This function runs a script.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
scriptVar
.run()
scriptVar
()
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
test8.run()
Runs the script referenced by the variable
test8
.
Also see
None