Keithley 2601B Reference Manual page 289

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 6: Instrument programming
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
Short
--
comment
Long
--[[
comment
Function and variable name restrictions
You cannot use factory script names, functions created by factory scripts, Lua reserved words and
top level command names for function or variable names.
For information on factory script names, see
You cannot use the following Lua reserved words for function or variable names.
Lua reserved words
and
break
do
else
elseif
end
false
6-12
Series 2600B System SourceMeter® Instrument Reference Manual
Usage
Use when the
comment text is
short enough that it
will not wrap to a
second line.
Use when the
]]
comment text is long
enough that it wraps
to additional lines.
for
or
function
repeat
if
return
in
then
local
true
nil
until
not
while
Example
--Disable the beeper.
beeper.enable = beeper.OFF
--[[Display a menu with three menu
items. If the second menu item is
selected, the selection will be
given the value Test2.]]
Factory scripts
(on page 5-19).
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents