Model 2651A High Power System SourceMeter® Instrument Reference Manual
Section 6: Instrument programming
2651A-901-01 Rev. A / March 2011
6-15
Using code comments
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)