EasyManuals Logo
Home>Keithley>Measuring Instruments>2461

Keithley 2461 Reference Manual

Keithley 2461
1109 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 #632 background imageLoading...
Page #632 background image
Section
7: Introduction to TSP operation Model 2461 Interactive SourceMeter® Instrument
Reference Manual
7-12 2461-901-01 A/November 2015
Lua basics
This section contains the basics about the Lua programming language to allow you to start adding
Lua programming commands to your scripts quickly.
For more information about Lua, see the Lua website (http://www.lua.org). Another source of useful
information is the Lua users group (http://lua-users.org), created for and by users of Lua programming
language.
Comments
Comments start anywhere outside a string with a double hyphen (--). If the text immediately after a
double hyphen (--) is anything other than double left brackets ([[), the comment is a short comment,
which continues only until the end of the line. If double left brackets follow the double hyphen (--[[),
it is a long comment, which continues until the corresponding double right brackets (]]) close the
comment. Long comments may continue for several lines and may contain nested [[ . . . ]] pairs.
The table below shows how to use code comments.
Using code comments
Type of
comment
Comment
delimiters
Usage Example
Short
comment
--
Use when the
comment text fits
on a single line.
--Turn off the front-panel display.
Long
comment
--[[ ]]
Use when the
comment text is
longer than one
line.
--[[Display a menu with three menu items.
If the second menu item is selected,
the selection will be given the value
Test2.]]
Function and variable name restrictions
You cannot use Lua reserved words and top-level command names for function or variable names.
Variable names must contain at least three characters.
The following table lists some of the Lua reserved words. If you attempt to assign these, the event
code -285, "TSP Syntax error at line x: unexpected symbol near 'word' " is displayed, where word is
the Lua reserved word.
Lua reserved words
and
for
or
break
function
repeat
do
if
return
else
in
then
elseif
local
true
end
nil
until
false
not
while

Table of Contents

Other manuals for Keithley 2461

Questions and Answers:

Question and Answer IconNeed help?

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

Keithley 2461 Specifications

General IconGeneral
BrandKeithley
Model2461
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals