EasyManuals Logo
Home>Keithley>Measuring Instruments>2651A

Keithley 2651A Reference Manual

Keithley 2651A
800 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #288 background imageLoading...
Page #288 background image
Section 6: Instrument programming Model 2651A High Power System SourceMeter® Instrument Reference Manual
6-44 2651A-901-01 Rev. A / March 2011
To change the name of a script, use the command:
scriptVar.name = "renamedScript"
Where:
scriptVar
= The global variable name
"renamedScript"
=
The new name of the user script that was referenced by the scriptVar
global variable
After changing the name, you need to save the original script to save the change to the name
attribute.
For example:
beepTwoSec.name = "beep2sec"
beepTwoSec.save()
beep2sec can be run using the command:
script.user.scripts.beep2sec()
NOTE
If the new name is the same as a name that is already used for a script, the name of the existing
script is removed and that script becomes unnamed. This removes the existing script if there are no
other variables that reference the previous script. If variables do reference the existing script, the
references remain intact.
Changing the name of a script does not change the name of any variables that reference that script.
After changing the name, the script can be found in the script.user.scripts table under its new
name.
Figure 88: Rename script
name value
script.user.scripts table
beepTwoSec
reference to script that is
now named beep2sec
Global variables
Scripts in the runtime environment
beep2sec
reference to script that is
now named beep2sec
NoAutorun
beeper.enable = 1
beeper.beep(2, 2400)
script name
source
beep2sec
For example, to change the name of the script named test2 to be autoexec:
test2.name = "autoexec"
test2.save()
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.

Table of Contents

Other manuals for Keithley 2651A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2651A and is the answer not in the manual?

Keithley 2651A Specifications

General IconGeneral
BrandKeithley
Model2651A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals