Working With Scripts In Nonvolatile Memory - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual
Example: Set a script to run automatically
test5.autorun = "yes"
test5.save()
Autoexec script
The autoexec script runs automatically when the instrument is turned on. It runs after all the scripts
have loaded and any scripts marked as autorun have run.
To create a script that executes automatically, create and load a new script and name it autoexec.
See
Create and load a script
You must save the autoexec script to nonvolatile memory if you want to use it after instrument power
has been turned off and then turned on again. See
page 6-8) for more detail.
Example: Creating an autoexec script with loadscript command
loadscript autoexec
display.clear()
display.settext("Hello from autoexec")
endscript
autoexec.save()
Example: Creating an autoexec script using TSB Embedded
display.clear()
display.settext("Hello from autoexec")

Working with scripts in nonvolatile memory

The
Fundamentals of scripting for TSP
scripts, primarily in the run-time environment. You can also work with scripts in nonvolatile memory.
The run-time environment and nonvolatile memory are separate storage areas in the instrument. The
information in the run-time environment is lost 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 run-time environment.
2600BS-901-01 Rev. B / May 2013
Assume a script named test5 is in the
run-time environment.
The next time the instrument is turned on,
test5 script automatically loads and
runs.
(on page 6-3).
Save a user script to nonvolatile memory
Creates the script autoexec.
Saves the autoexec script to nonvolatile
memory. The next time the instrument is
turned on, "Hello from autoexec" is
displayed.
In the TSP Script box, enter autoexec.
Enter the code in the entry box.
Click Save Script.
Creates a new script that clears the
display when the instrument is turned on
and displays "Hello from autoexec."
(on page 6-1) section in this manual describes working with
Section 6: Instrument programming
(on
6-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents