EasyManuals Logo

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 #285 background imageLoading...
Page #285 background image
Model 2651A High Power System SourceMeter® Instrument Reference Manual Section 6: Instrument programming
2651A-901-01 Rev. A / March 2011 6-41
For example, to set up a two-second beep, you could send the command:
beepTwoSec = script.new("beeper.enable = 1 beeper.beep(2, 2400)", "beepTwoSec")
To run the new script, send the command:
beepTwoSec()
When you add beepTwoSec, the global variable and script.user.script table entries are made
to the runtime environment as shown in the following figure.
Figure 85: Runtime environment after creating a script
name
value
script.user.scripts table
beepTwoSec
reference to script
named beepTwoSec
Global variables
Scripts in the runtime environment
beepTwoSec
reference to script named
beepTwoSec
NoAutorun
beeper.enable = 1
beeper.beep(2, 2400)
script name
source
beepTwoSec
Create an unnamed script using script.new()
NOTE
Unnamed scripts are not available from the front panel display of the instrument. Only the anonymous
script and named scripts are available from the front panel display.
When you create a script using script.new(), if you do not include name, the script is added to the
runtime environment as an unnamed script. The script.new() function returns the script. You can
assign it to a global variable, a local variable, or ignore the return value. A global variable is not
automatically created.
For example, if you sent the command:
hello = script.new('display.clear() display.settext("hello")')
A script is created in the runtime environment and a global variable is created that references the
script.
To run the script, send the command:
hello()

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