Section 7: Command reference Model 2651A High Power System SourceMeter® Instrument Reference Manual
7-162 2651A-901-01 Rev. A / March 2011
Also see
None
scriptVar.save()
This function saves the script to nonvolatile memory or to a USB flash drive.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
scriptVar.save()
scriptVar.save(filename)
scriptVar
The name of variable that references the script
filename
The file name to use when saving the script to a USB flash drive
Details
The scriptVar.save() function only saves a script to nonvolatile memory or a USB flash drive.
You are not required to qualify the path to the USB flash drive, but if you would like to, add /usb1/ before the
fileName (see Example 2).
You are not required to add the file extension, but if you would like to, the only allowed extension is .tsp (see
Example 2).
Example 1
test8.save()
Saves the script referenced by the variable
test8 to nonvolatile memory.
Example 2
test8.save("/usb1/myScript.tsp")
Saves the script referenced by the variable
test8 to a file named myScript.tsp on your
flash drive
Also see
Save a user script (on page 6-10)
scriptVar.source
This attribute holds the source code of a user script.
Type TSP-Link accessible Affected by Where saved Default value
Attribute (RW)
(see Details)
No Not applicable Not saved Not applicable