EasyManuals Logo

Tektronix Keithley 2601B-PULSE Reference Manual

Tektronix Keithley 2601B-PULSE
849 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 #311 background imageLoading...
Page #311 background image
Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 10: Instrument programming
2601B-PULSE-901-01A April 2020 10-15
Top level command names
beeper
gcinfo
os
status
bit
gettimezone
print
string
collectgarbage
gpib
printbuffer
timer
dataqueue
io
printnumber
tonumber
delay
lan
reset
tostring
digio
localnode
savebuffer
trigger
display
makegetter
script
tsplink
errorqueue
makesetter
serial
tspnet
eventlog
math
settime
type
exit
meminfo
settimezone
userstring
format
node
setup
waitcomplete
fs
opc
smua
Values and variable types
In Lua, you use variables to store values in the runtime environment for later use.
Lua is a dynamically-typed language; the type of the variable is determined by the value that is
assigned to the variable.
Variables in Lua are assumed to be global unless they are explicitly declared to be local. A global
variable is accessible by all commands. Global variables do not exist until they have been assigned
a value.
Variable types
Variables can be one of the following types.
Variable types and values
Variable type returned
Value
Notes
"nil"
not declared
The type of the value nil, whose main property is
to be different from any other value; usually it
represents the absence of a useful value.
"boolean"
true or false
Boolean is the type of the values false and true.
In Lua, both nil and false make a condition
false; any other value makes it true.
"number"
number
All numbers are real numbers; there is no
distinction between integers and floating-point
numbers.
"string"
sequence of words or
characters
"function"
a block of code
Functions perform a task or compute and return
values.
"table"
an array
New tables are created with { } braces.
For example:
{1, 2, 3.00e0}
"userdata"
variables
Allows arbitrary program data to be stored in Lua
variables.
"thread"
line of execution

Table of Contents

Other manuals for Tektronix Keithley 2601B-PULSE

Questions and Answers:

Question and Answer IconNeed help?

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

Tektronix Keithley 2601B-PULSE Specifications

General IconGeneral
BrandTektronix
ModelKeithley 2601B-PULSE
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals