![Keithley 707B Скачать руководство пользователя страница 207](http://html.mh-extra.com/html/keithley/707b/707b_reference-manual_661685207.webp)
Section 6: Instrument programming
Models 707B and 708B Switching Matrix Reference Manual
6-16
707B-901-01 Rev. A / August 2010
Type of
comment
Comment
delimiters
Usage Example
Short comment
--
Use when the
comment text is short
enough that it will not
wrap to a second line.
--Disable the front-panel LOCAL key.
display.locallockout = display.lock
Long comment
--[[ ]]
Use when the
comment text is long
enough that it wraps to
additional lines. The
double left brackets
signal the beginning of
the multi-line comment,
and the double right
brackets signal the end
of the comment.
--[[Displays a menu with three menu
items. If the second menu item is
selected, the selection will be
given the value Test2.]]
selection = display.menu(
"Sample Menu", "Test1 Test2 Test3")
print(selection)
Lua reserved words
You cannot use the following words for function or variable names.
and for or
break function
repeat
do if return
else in
then
elseif local true
end nil until
false not
while
In addition to the Lua reserved words, you also cannot use command group names as variable
names. Doing so will result in the loss of use of the command group. For example, if you send the
command digio = 5, you cannot access the digio.* ICL commands until you cycle the power to the
instrument. These groups include:
beeper gpib
bit lan
channel scan
digio slot
display status
eventlog timer
errorqueue trigger
format tsplink