EasyManuals Logo
Home>Keithley>Measuring Instruments>2601

Keithley 2601 Reference Manual

Keithley 2601
562 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 #99 background imageLoading...
Page #99 background image
2600S-901-01 Rev. C / January 2008 Return to Section Topics 2-51
Series 2600 System SourceMeter® Instruments Reference Manual Section 2: TSP Programming
' if ' expression 4 was false.
x is not equal to 10, and y is not less than 2.
Loop control
TSL has familiar constructs for doing things repetitively and/or until an expression evaluates to
false.
Something to iterate
list = {"One", "Two", "Three", "Four", "Five", "Six"}
--
-------------------------------- FOR loop ----------------------------
--
print("Counting from one to three:")
for element = 1, 3 do
print(element, list[element])
end
print("Counting from one to four,")
print("in steps of two:")
for element = 1, 4, 2 do
print(element, list[element])
end
--
-------------------------------- WHILE loop --------------------------
--
print("Count elements in list")
print("on numeric index")
element = 1
while list[element] do -- Will exit when list[element] = nil
print(element, list[element])
element = element + 1
end
--
-------------------------------- REPEAT loop -------------------------
--
print("Count elements in list")
print("using repeat")
element = 1
repeat
print(element, list[element])

Table of Contents

Other manuals for Keithley 2601

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley 2601 Specifications

General IconGeneral
BrandKeithley
Model2601
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals