Keithley SourceMeter 2600 Series Reference Manual page 98

Table of Contents

Advertisement

2-46 TSP Programming Fundamentals
Autoexec script
One script can be designated as the autoexec script. When the Series 2600 is
turned on, the autoexec script will start after all the autorun scripts have run.
loadscript autoexec
loadandrunscript autoexec
An autoexec script can be formed by creating a new script and naming it
autoexec
loading the new script, send the
volatile memory. See
details on creating a script.
An autoexec script can also be created by changing the name of an existing script
that is saved in non-volatile memory by using the following command:
myscript.save("autoexec")
where:
Example:
Assume a script named "test6" is saved in non-volatile memory. That script can be
made into an autoexec script as follows:
test6.save("autoexec")
The next time the Series 2600 is turned on, the "test6" script will automatically
load and start after all of the autorun scripts have run.
Running a user script from the Series 2600
In order to run a user script from the front panel, an entry for the script needs to be
added to the User menu for the LOAD key. The following commands are used to
enter or delete a name into the User menu:
display.loadmenu.add(displayname, script)
display.loadmenu.delete(displayname)
where:
It does not matter what order the items are added to the User menu. Menu items
will be displayed in alphabetical order when the menu is selected.
Example:
Assume a user script named "Test9" has been loaded into the run-time
environment. Add the name ("Test9") to the User menu for the script as follows:
display.loadmenu.add(Test9, Test9)
2600S-901-01 Rev. A / May 2006
Series 2600 System SourceMeters Reference Manual
(as shown above using
"Creating a user
is the user-defined name of the script.
myscript
is the name to be added to (or deleted from) the User
displayname
menu.
is the name of the script.
script
Return to
or
loadscript
loadandrunscript
command to save it in non-
autoexec.save()
script" (described earlier in this section) for
front panel controls
Section 2 topics
). After

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents