![Keithley 707B Скачать руководство пользователя страница 200](http://html.mh-extra.com/html/keithley/707b/707b_reference-manual_661685200.webp)
Models 707B and 708B Switching Matrix Reference Manual
Section 6: Instrument programming
707B-901-01 Rev. A / August 2010
6-9
Save the anonymous script as a named script
To save the anonymous script to a named script and save it to nonvolatile memory:
1. To name the script, send the following command:
script.anonymous.name = "myTest"
where
myTest
is the name of the script
2. Send the command
script.anonymous.save()
to save
myTest
to nonvolatile memory.
Working with scripts in nonvolatile memory
The previous section,
Fundamentals of scripting for TSP
(on page 6-1), described working with
scripts, primarily in the runtime environment.
Scripts can also be stored in nonvolatile memory. Information in nonvolatile memory is stored even
when the instrument is turned off. The scripts that are in nonvolatile memory are loaded into the
runtime environment when the instrument is turned on.
The runtime environment and nonvolatile memory are separate storage areas in the instrument. The
runtime environment is wiped clean when the instrument is turned off. The nonvolatile memory
remains intact when the instrument is turned off. When the instrument is turned on, information in
nonvolatile memory is loaded into the runtime environment.
This section describes how to work with the scripts in nonvolatile memory, including how to:
•
Save a user script to nonvolatile memory
•
•
Restore a script to the runtime environment
•
(on page 6-13)
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.
NOTE
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
(on page 6-4)).
2. Do one of the following:
•
Send the command
myScript.save()
, where
myScript
is the name of the script.
•
In TSB Embedded, click
Save Script
.