Model 2461 Interactive SourceMeter® Instrument Reference Manual Section 8: TSP command reference2461-901-01 A/November 2015 8-101DetailsThe scriptVar.save() function saves a script to nonvolatile memory or a USB flash drive. Theroot folder of the USB flash drive has the absolute path /usb1/.If no filename is specified, the script is saved to internal nonvolatile memory. If a filename isgiven, the script is saved to the USB flash drive.If you set scriptVar to autoexec, the script is run when the instrument powers up. You mustdelete the existing autoexec script before saving the new one. Note that performing a system resetdoes not delete the autoexec script.You can add the file extension, but it is not required. The only allowed extension is .tsp (seeExample 2).Example 1test8.save() Saves the script referenced by the variabletest8 to nonvolatile memory.Example 2test8.save("/usb1/myScript.tsp") Saves the script referenced by the variabletest8 to a file named myScript.tsp on yourUSB flash drive.Also seeWorking with scripts (on page 7-5)scriptVar.sourceThis attribute contains the source code of a script.Type TSP-Link accessible Affected by Where saved Default valueAttribute (R) No Not applicable Not applicable Not applicableUsagecode = scriptVar.sourcecode The body of the scriptscriptVar The name of the variable that references the script that contains the source codeDetailsThe body of the script is a single string with lines separated by the new line character.