Section 2
:
TSP Programming Fundamentals
Series 3700 System Switch/Multimeter Reference Manual
2-6
Document Number: 3700S-901-01 Rev. A / August 2007
Run-time environment
The run-time environment is a collection of global variables (scripts) the user has created. After
scripts are placed into the run-time environment, they are then ready to be run and/or managed.
Scripts are placed in the run-time environment as follows:
Scripts saved in nonvolatile memory of the Series 3700 are automatically recalled into
the run-time environment when the instrument is turned on.
Named scripts created and loaded by the user are also placed in the run-time
environment.
An unnamed script created and loaded by the user is also placed in the run-time
environment. Keep in mind that only one unnamed script, referred to as the "active
script," can be in the run-time environment. If another unnamed script is created and
loaded, it will replace the old unnamed script in the run-time environment.
Nonvolatile memory
After a new or modified user script is loaded into the Series 3700, it resides in the run-time
environment and will be lost when the unit is turned off. To save a script after power-down, the
script must be saved in the nonvolatile memory. When the Series 3700 is turned back on, all
saved scripts will load into the run-time environment.
NOTE
Do not confuse the run-time environment with the nonvolatile memory of the Series
3700. Making changes to a script in the run-time environment does not affect the
stored version of that script. After making changes, saving the script will overwrite the
old version of the script in nonvolatile memory.
TSP programming levels
Instrument control library (ICL) commands and TSL programming statements are used to
program and control the Series 3700. There are two levels of programming (described later in
this section):
Sending commands and statements: Non-scripted chunks are executed one line at a
time by the PC.
User scripts: A program script is created and loaded into the Series 3700, where it is
then run. An interactive script is a type of script that interacts with the operator. It
provides user-defined messages on the Series 3700 display to prompt the operator to
enter parameters from the front panel.