Keithley 2651A Reference Manual page 268

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 6: Instrument programming
Example: If
if 0 then
print("Zero is true!")
else
print("Zero is false.")
end
Example: Comparison
x = 1
y = 2
if x and y then
print("Both x and y are true")
end
Example: If and else
x = 2
if not x then
print("This is from the if block")
else
print("This is from the else block")
end
6-24
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Zero is true!
Both x and y are true
This is from the else
block
2651A-901-01 Rev. A / March 2011

Advertisement

Table of Contents
loading

Table of Contents