EasyManuals Logo

Keithley 2657A User Manual

Keithley 2657A
805 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 #278 background imageLoading...
Page #278 background image
Model 2657A High Power System SourceMeter® Instrument Reference Manual Section 6: Instrument programming
2657A-901-01 Rev. B/December 2012 6-29
Programming example: Script with a for loop
The following script puts a message on the front panel display slowly — one character at a time. The
intent of this example is to demonstrate:
• The use of a for loop
• Simple display remote commands
• Simple Lua string manipulation
When creating a script using the TSB Embedded, you do not need the shell commands loadscript
and endscript, as shown in the examples below.
Example: User script
User script created in TSB Embedded User script created in user's own program
loadscript
display.clear()
myMessage = "Hello World!"
for k = 1, string.len(myMessage) do
x = string.sub(myMessage, k, k)
display.settext(x)
print(x)
delay(1)
end
display.clear()
myMessage = "Hello World!"
for k = 1, string.len(myMessage) do
x = string.sub(myMessage, k, k)
display.settext(x)
print(x)
delay(1)
end
endscript
Test Script Builder (TSB)
Keithley Instruments Test Script Builder (TSB) is a software tool included with your Model 2657A. You
can install and use TSB to develop scripts for TSP-enabled instruments.
Installing the TSB software
To install the Test Script Builder (TSB) software:
1. Close all programs.
2. Place the Test Script Builder Software Suite CD (Keithley Instruments part number KTS-850 E01
or later) into your CD-ROM drive.
3. Follow the on-screen instructions.
If your web browser does not start automatically and display a screen with software installation links,
open the installation file (setup.exe) located on the CD-ROM to start installation.
NOTE

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley 2657A Specifications

General IconGeneral
BrandKeithley
Model2657A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals