Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-187
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 8-78)
script.new() (on page 9-181)
scriptVar.save() (on page 9-188)
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().
To run a factory script, use script.factory.scripts.scriptName(), replacing scriptName
with the name of the factory script.
Example
Runs the script referenced by the variable test8.