Section 6: Instrument programming
Series 2600B System SourceMeter® Instrument Reference Manual
6-8
2600BS-901-01 Rev. B / May 2013
Save a user script
You can save scripts to nonvolatile memory using commands or TSB Embedded.
Only named scripts can be saved to nonvolatile memory. The anonymous script must be named
before it can be saved to nonvolatile memory.
If a script is not saved to nonvolatile memory, the script is lost when the instrument is turned off.
To save a script to nonvolatile memory:
1. Create and load a named script (see
Create and load a script
(on page 6-3)).
2. Do one of the following:
•
Send the command
scriptVar
.save()
, where
scriptVar
is the name of the script.
•
In TSB Embedded, click
Save Script
.
Example: Save a user script to nonvolatile memory
test1.save()
Assume a script named
test1
has been loaded.
test1
is
saved into nonvolatile memory.
To save a script to an external USB drive:
When you save a script to a USB flash drive, you do not need to specify a file extension. The
extension
.tsp
is automatically added. If you do specify a file extension, it must be
.tsp
. An error
will occur if you use any other file extension.
1. Load a script (see
Create and load a script
(on page 6-3)).
2. Send the command
scriptVar
.save("/usb1/
filename
.tsp")
, where
scriptVar
is the
variable referencing the script and
filename
.tsp
is the name of the file.
You can also use TSB Embedded to save a script to a USB flash drive (or any accessible drive)
installed on your computer. From TSB Embedded, load the script and click
Export to PC
.
Save the anonymous script as a named script
To save the anonymous script to nonvolatile memory, you must name it first.
To save the anonymous script as a named script:
1. To name the script, send the command
script.anonymous.name = "
myTest
"
(where
myTest
is the name of the script).
2. Send the
script.anonymous.save()
command to save
myTest
to nonvolatile memory.
Summary of Contents for System SourceMeter 2601B
Page 841: ......