EasyManuals Logo

Keithley 2450 User Manual

Keithley 2450
878 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 #515 background imageLoading...
Page #515 background image
S
ection 7: Introduction to TSP operation Model 2450 Interactive SourceMeter® Instrument
Reference Manual
7-24 2450-901-01 Rev. B/September 2013
Example: Break with while statement enclosed by comment delimiters
local numTable = {5, 4, 3, 2, 1}
local k = table.getn(numTable)
--local breakValue = 3
while k > 0 do
if numTable[k] == breakValue then
print("Going to break and k = ", k)
break
end
k = k - 1
end
if k == 0 then
print("Break value not found")
end
This example defines a break value
(breakValue), but the break value
line is preceded by comment delimiters
so that the break value is not
assigned, and the code reaches the
value 0 to exit the while loop.
Output:
Break value not found
Example: Break with infinite loop
a, b = 0, 1
while true do
print(a, b)
a, b = b, a + b
if a > 500 then
break
end
end
This example uses a break statement
that causes the while loop to exit if the
value of a becomes greater than 500.
Output:
0 1
1 1
1 2
2 3
3 5
5 8
8 13
13 21
21 34
34 55
55 89
89 144
144 233
233 377
377 610

Table of Contents

Other manuals for Keithley 2450

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley 2450 Specifications

General IconGeneral
Model2450
CategorySourceMeter
Voltage Source Range±200 V
Current Source Range±1 A
DC Voltage200 V
DC Current1 A
Power Output20 W
Resolution6.5 digits
Display5-inch capacitive touchscreen
Operating Temperature0°C to 50°C
ConnectivityUSB, LAN, GPIB
Dimensions213 mm × 88 mm × 370 mm

Related product manuals