EasyManua.ls Logo

Tektronix KEITHLEY 2600B Series

Tektronix KEITHLEY 2600B Series
834 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-163
makegetter()
This function creates a function to get the value of an attribute.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
getter = makegetter(table, "attributeName")
getter
The return value
table
Read-only table where the attribute is located
attributeName
A string representing the name of the attribute
Details
This function is useful for aliasing attributes to improve execution speed. Calling the function created
with makegetter() executes more quickly than accessing the attribute directly.
Creating a getter function is only useful if it is going to be called several times. Otherwise, the
overhead of creating the getter function outweighs the overhead of accessing the attribute directly.
Example
getlevel = makegetter(smua.source, "levelv")
v = getlevel()
Creates a getter function called getlevel.
When getlevel() is called, it returns the value of smua.source.levelv.
Also see
makesetter() (on page 9-164)

Table of Contents

Related product manuals