Keithley 708B Reference Manual page 201

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

Advertisement

Section 6: Instrument programming
Example: Save a user script
Code
test1.save()
Retrieve a user script
You can retrieve the source code of a user script that is stored in nonvolatile memory.
There are several ways to retrieve the source code for the user script:
Line by line: Use scriptVar.list() to retrieve the source code line by line.
Entire script: Use the print(scriptVar.source) command to retrieve the script source code
as a single string.
Use TSB Embedded.
After retrieving a script, see
script and loading it back into the instrument.
To get a list of scripts that are in nonvolatile memory, see
Retrieve source code line by line
To retrieve the source code line by line, use the scriptVar.list() command. The source code for
this method includes the loadscript or loadandrunscript and endscript keywords.
After retrieving the source code, you can modify and save the command lines as a user script under
the same name or a new name.
To retrieve the source code of a script line by line, send the command:
scriptVar.list()
where scriptVar is the name of the script.
To retrieve the commands in the anonymous script, use script.anonymous.list().
Example
Code
test7.list()
6-10
Models 707B and 708B Switching Matrix Reference Manual
Create and load a script
NOTE
NOTE
Notes
Assume a script named "test1" has been
created and loaded. test1 is saved into
nonvolatile memory.
(on page 6-4) for information on re-creating the
script.user.catalog()
Notes
Retrieve the source of a script named "test7".
707B-901-01 Rev. A / August 2010
(on page 7-163).

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents