2600AS-901-01 Rev. B / September 2008
Return to
12-11
Series 2600A System SourceMeter® Instruments Reference Manual
Section 12: TSP Fundamentals and Script Management
Saving a user script
A created and loaded script does not have to be saved in nonvolatile memory of the Series 2600A
before it can be run. However, an unsaved script will be lost when the Series 2600A is turned off.
The save command will save the script in nonvolatile memory.
The
myscript.save()
command saves the script under the current name of the script. If you save
the script to a name that already exists in nonvolatile memory, it will be overwritten.
The
myscript.save("filename")
command is used to save the script to the USB memory stick
as a file with the given file name.
NOTE
.tsp
is the default file extension for all scripts.
Saving a named script
Only a named script can be saved in nonvolatile memory of the Series 2600A. After creating and
loading a named script, use the following command to save it:
myscript.save()
Use the following to save a script to an external USB device:
myscript.save("/usb1/filename.tsp")
Where:
myscript
is the variable referencing the script and
filename.tsp
is a name of the file
assigned by the user.
Saving scripts to internal nonvolatile memory
Complete the following steps to save a script to nonvolatile memory:
1.
Press
MENU
>
SCRIPT
>
SAVE
.
2.
Turn the
navigation wheel
to select the script from the list.
NOTE You cannot save unnamed scripts to nonvolatile memory.
3.
Select
INTERNAL
to save the script to internal nonvolatile memory.
Examples:
1.
Assume a script named “test1” has been created and loaded. The following com-
mand saves the script in nonvolatile memory:
test1.save()
2.
To save the script named “
test1
” under a new name (“
test2
”) in nonvolatile
memory, send the following commands:
test1.name = ”test2”
test1.save()
Saving scripts to the USB flash drive
You can transfer, load, and run scripts stored on the USB flash drive. Use the following steps to
save a script to the USB flash drive from the front panel.
1.
Insert the USB flash drive into the USB port.
2.
Press
MENU
>
SCRIPT
and then select
SAVE
(see
).