Section 6: Instrument programming
Models 707B and 708B Switching Matrix Reference Manual
6-8
707B-901-01 Rev. B / January 2015
To save a script to nonvolatile memory:
1. Create and load a named script (see
(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.
(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.
Delete user scripts
These steps remove a script from nonvolatile memory. To completely remove a script from the
instrument, there are additional steps you must take. See
Delete user scripts from the instrument
page 6-41).
To delete a script from nonvolatile memory using a remote interface:
You can delete the script from nonvolatile memory by sending either of the following commands:
•
script.delete("
name
")
•
script.user.delete("
name
")