Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-166 2601B-PULSE-901-01A April 2020
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.
Also see
None
scriptVar.save()
This function saves the script to nonvolatile memory or to a USB flash drive.
Usage
scriptVar.save()
scriptVar.save("filename")
The name of variable that references the script
A string that contains the file name to use when saving the script to a USB flash drive
Details
The scriptVar.save() function saves a script to nonvolatile memory or a USB flash drive. The
root folder of the USB flash drive has the absolute path /usb1/.
If no filename is specified (the file name parameter is an empty string), the script is saved to
internal nonvolatile memory. Only a script with filename defined can be saved to internal nonvolatile
memory. If a filename is given, the script is saved to the USB flash drive.
You can add the file extension, but it is not required. The only allowed extension is .tsp (see
Example 2).