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 #266 background imageLoading...
Page #266 background image
Model 2657A High Power System SourceMeter® Instrument Reference Manual Section 6: Instrument programming
2657A-901-01 Rev. B/December 2012 6-17
Example: User script
User script created in Test Script Builder or
TSB Embedded
User script created in user's own program
function myDisplay(name)
display.clear()
display.settext(
name .. "$N is here!")
end
loadscript
function myDisplay(name)
display.clear()
display.settext(
name .. " $N is here!")
end
endscript
Operators
You can compare and manipulate Lua variables and constants using operators.
Arithmetic operators
Operator Description
+
addition
−
subtraction
*
multiplication
/
division
-
negation (for example, c = −a)
^
exponentiation
Relational operators
Operator Description
<
less than
>
greater than
<=
less than or equal
>=
greater than or equal
~=
not equal
==
equal
Logical operators
The logical operators in Lua are and, or, and not. All logical operators consider both false and
nil as false and anything else as true.
The operator not always returns false or true.
The conjunction operator and returns its first argument if this value is false or nil; otherwise, and
returns its second argument. The disjunction operator or returns its first argument if this value is
different from nil and false; otherwise, or returns its second argument. Both and and or use
shortcut evaluation, that is, the second operand is evaluated only if necessary.

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