EasyManuals Logo

Tektronix KEITHLEY 2600B Series User Manual

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
Page #485 background imageLoading...
Page #485 background image
Section 9: TSP command reference Series 2600B System SourceMeter® instrument Reference Manual
9-164 2600BS-901-01 Rev. F/August 2021
makesetter()
This function creates a function that, when called, sets the value of an attribute.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
setter = makesetter(table, "attributeName")
setter
Function that sets the value of the attribute
table
Read-only table where the attribute is located
attributeName
The string name of the attribute
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 9-163)
meminfo()
This function returns the present amount of available memory and the total amount of memory in the instrument.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
freeMem, totalMem = meminfo()
freeMem
The amount of free dynamically allocated memory available
totalMem
The total amount of dynamically allocated memory in the instrument

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix KEITHLEY 2600B Series and is the answer not in the manual?

Tektronix KEITHLEY 2600B Series Specifications

General IconGeneral
BrandTektronix
ModelKEITHLEY 2600B Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals