Keithley SourceMeter 2600 Series Reference Manual page 325

Table of Contents

Advertisement

Series 2600 System SourceMeters Reference Manual
Example
Creates a getter function called
getlevel = makegetter(smua.source, "levelv")
...
v = getlevel()
When
makesetter
Function
Creates a function to set the value of an attribute.
Usage
setter = makesetter(table, attributename)
table
attributename
setter
• This function creates a function that when called sets the value of the attribute. This
Remarks
function is useful for aliasing attributes to improve execution speed. Calling the
setter function will execute faster than accessing the attribute directly.
• Creating a
Otherwise the overhead of creating the
accessing the attribute directly.
Example
Creates a
setlevel = makesetter(smua.source, "levelv")
for v = 1, 10 do
setlevel(v)
end
Using
performing a source sweep.
is called, it returns the value of
getlevel
Read-only table were the attribute is located.
The string name of the attribute.
Function that sets the value of the given attribute.
function is only useful if it is going to be called several times.
setter
function called
setter
in the loop sets the value of
setlevel
Return to
Instrument Control Library 12-51
:
getlevel
smua.source.levelv
function outweighs the overhead of
setter
:
setlevel
smua.source.levelv
Section 12 topics
.
, thereby
2600S-901-01 Rev. A / May 2006

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents