Keithley 708B Reference Manual page 199

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Section 6: Instrument programming
The .save() command saves the script to nonvolatile memory. This saves the change when the
instrument is turned off. See
Example
Code
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
If you use the create configuration script feature, you can assign the configuration script to be the
autoexec script. See
You need to save the autoexec script to nonvolatile memory to save the script when the instrument is
turned off. See
Example: With loadscript command
Code
loadscript autoexec
display.clear()
display.settext('Hello from autoexec')
endscript
autoexec.save()
Example: TSB Embedded
Code
display.clear()
display.settext('Hello from autoexec')
6-8
Save a user script to nonvolatile memory
(on page 6-4).
Save the present configuration
Save a user script to nonvolatile memory
Models 707B and 708B Switching Matrix Reference Manual
NOTE
Output
Assume a script named "test5" is in the runtime
environment.
The next time the instrument is turned on,
"test5" script automatically loads and runs.
(on page 2-106) for more information.
NOTE
(on page 6-9) for more detail.
Notes
Creates the script autoexec.
Saves the autoexec script to nonvolatile
memory. The next time the instrument is turned
on, "Hello from autoexec" is displayed.
Notes
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-9) for more detail.
707B-901-01 Rev. A / August 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents