Model 2606B System SourceMeter® Instrument Reference Manual
Script editor
The script editor is where you write, modify, and debug scripts.
To open and display a script file, double-click the file name in the project navigator. You can have
multiple script files open in the script editor at the same time. Each open script file is displayed on a
separate tab.
To display another script file that is already open, select the tab that contains the script in the script
editor area.
Outline view
The outline view allows you to navigate through the structure of the active script in the script editor.
Double-clicking a variable name or icon causes the first instance of the variable in the active script to
be highlighted.
This view shows:
•
Names of local and global variables
•
Functions referenced by the active script in the script editor
•
Parameters
•
Loop control variables
•
Table variables
•
Simple assignments to table fields
The Outline tab is visible by default in the TSP perspective.
Icon
Name
Global function variable
Local function variable
Anonymous function
Global table variable
Local table variable
Other table field
Global variable
Local variable
Table method
[ ]
Nonfunction block statement
(example 1)
Nonfunction block statement
(example 2)
2606B-901-01 Rev. C November 2021
Examples
function gFunction()
end
local function lFunction()
end
myTest(function() return 1 end)
gTable = { }
local lTable = { }
testTable.unit1 = "This is unit 1"
testTable.unit2 = "This is unit 2"
gVariable = 3
local lVariable = 5
gTable = { }
function gTable:testmethod()
end
if true == true then
local var
end
for index = 1, 10 do
end
Section 14: Instrument programming
14-35
Need help?
Do you have a question about the KEITHLEY SourceMeter 2606B and is the answer not in the manual?