What Is A Script; Run-Time And Nonvolatile Memory Storage Of Scripts; What Can Be Included In Scripts; Fundamentals Of Programming For Tsp - Keithley 2657A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2657A:
Table of Contents

Advertisement

Section 6: Instrument programming

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 that prompt the operator to enter parameters.

Run-time and nonvolatile memory storage of scripts

Scripts are loaded into the run-time environment of the instrument. From there, they can be stored in
the nonvolatile memory.
The run-time environment is a collection of global variables, which include scripts, that the user has
defined. A global variable can be used to store a value while the instrument is turned on and until a
new value is assigned to the variable. After scripts are loaded into the run-time environment, you can
run and manage them from the front panel of the instrument or from a computer. Information in the
run-time environment is lost when the instrument is turned off.
Nonvolatile memory is where information is stored even when the instrument is turned off. Save
scripts to nonvolatile memory to save them even if the power is cycled. The scripts that are in
nonvolatile memory are loaded into the run-time environment when the instrument is turned on.
Scripts are placed in the run-time environment when:
The instrument is turned on. All scripts that are saved to nonvolatile memory are copied to the
run-time environment when the instrument is turned on.
Loaded over a remote command interface.
For detail on the amount of memory available in the run-time environment, see
considerations for the run-time environment
If you make changes to a script in the run-time environment, the changes are lost when the
instrument is turned off. To save the changes, you must save them to nonvolatile memory. See
Working with scripts in nonvolatile memory

What can be included in scripts?

Scripts can include combinations of TSP commands and Lua code. TSP commands instruct the
instrument to do one thing and are described in the command reference (see
page 7-8)). Lua is a scripting language that is described in
page 6-10).
6-2
Model 2657A High Power System SourceMeter® Instrument Reference Manual
(on page 6-47).
NOTE
(on page 6-7).
Memory
TSP commands

Fundamentals of programming for TSP

2657A-901-01 Rev. B/December 2012
(on
(on

Advertisement

Table of Contents
loading

Table of Contents