Tektronix Keithley 2651A Reference Manual page 528

High power system sourcemeter instrument
Table of Contents

Advertisement

Model 2651A High Power System SourceMeter® Instrument Reference Manual
makesetter()
This function creates a function that, when called, sets the value of an attribute.
Type
TSP-Link accessible
Function
No
Usage
setter = makesetter(table, "attributeName")
setter
table
attributeName
Details
This function is useful for aliasing attributes to improve execution speed. Calling the setter function
execute more quickly than accessing the attribute directly.
Creating a setter function is only useful if it is going to be called several times. If you are not calling
the setter function several times, it is more efficient to access the attribute directly.
Example
setlevel = makesetter(smua.source, "levelv")
for v = 1, 10 do
setlevel(v)
end
Creates a setter function called setlevel.
Using setlevel() in the loop sets the value of smua.source.levelv, performing a source sweep.
Also see
makegetter()
(on page 7-182)
2651A-901-01 Rev. C October 2021
Affected by
Where saved
Function that sets the value of the attribute
Read-only table where the attribute is located
The string name of the attribute
Section 7: TSP command reference
Default value
7-183

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Keithley 2651A and is the answer not in the manual?

Questions and answers

Table of Contents