Keithley 2651A Reference Manual page 259

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
Using code comments
Type of
Comment
comment
delimiters
Short
--
comment
Long
--[[
comment
2651A-901-01 Rev. A / March 2011
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.
The double left
brackets signal the
beginning of the
multi-line comment,
and the double right
brackets signal the
end of the comment.
Example
--Disable the front-panel LOCAL key.
display.locallockout = display.LOCK
--[[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)
Section 6: Instrument programming
6-15

Advertisement

Table of Contents
loading

Table of Contents