Section 6: Instrument programming
Models 707B and 708B Switching Matrix Reference Manual
6-2
707B-901-01 Rev. A / August 2010
What is a script?
A script is a collection of instrument control commands and programming statements. Scripts that you
create are referred to as
user scripts
.
Your scripts can be interactive. Interactive scripts display messages on the front panel of the
instrument to prompt the operator to enter parameters.
Runtime and nonvolatile memory storage of scripts
Scripts are loaded into the runtime environment of the instrument. From there, they can be stored in
the nonvolatile memory.
The runtime environment is a collection of global variables, which include scripts, that the user has
defined. A global variable can be used to remember a value as long as the instrument is turned on
and the variable has not been assigned a new value. After scripts are loaded into the runtime
environment, you can run and manage them from the front panel of the instrument or from a
computer.
Nonvolatile memory is where information is stored even when the instrument is turned off. To save a
script when the instrument is turned off, you must save it to nonvolatile memory. The scripts that are
in nonvolatile memory are loaded into the runtime environment when the instrument is turned on.
Information in the runtime environment is lost when the instrument is turned off.
Scripts are placed in the runtime environment when:
•
The instrument is turned on. All scripts that are saved to nonvolatile memory are copied to the
runtime environment when the instrument is turned on.
•
They are loaded into the runtime environment.
For detail on the amount of memory available in the runtime environment, see
(on page 6-44).
NOTE
If you make changes to a script in the runtime environment, the changes are lost when the instrument
is turned off. To save the changes, you must save them to nonvolatile memory. See
(on page 6-9).