Makegetter Functions - Keithley 2601 Reference Manual

System sourcemeter 2600 series (smu)
Hide thumbs Also See for 2601:
Table of Contents

Advertisement

Section 12: Instrument Control Library
localnode.setglobal
Function
Sets the value of a global variable.
Usage
node[N].setglobal (name, value)
name
value
Remarks
• Use this function to create a global variable and to assign values to the global variable from a
remote master node.
• Do not use this command to set the value of a global variable on the local node.
Example
node[N].setglobal ("x", 5)
localnode.showerrors
Attribute
Automatic display of errors.
Usage
errormode = localnode.showerrors
localnode.showerrors = errormode-- Writes show errors state.
errormode
Remarks
• If this attribute is set to 1, the unit will automatically display any generated errors stored in the
error queue, and then clear the queue. Errors will be processed at the end of executing a
command message (just prior to issuing a prompt, if prompts are enabled).
• If this attribute is set to 0, errors will be left in the error queue and must be explicitly read or
cleared.
• When used in an expanded system (TSP-Link), localnode.showerrors is sent to the
remote master node only. Use node[N].showerrors (where N is the node number) to
send the command to any node in the system. See
Details
See
errorqueue functions and attribute
Also see
localnode.setglobal

makegetter functions

These functions are used to set and retrieve a value for an attribute.
makegetter
Function
Creates a function to set the value of an attribute.
Usage
getter = makegetter(table, attribute name)
table
attributename
getter
Remarks
• This function creates a function that when called returns the value of the attribute. This
function is useful for aliasing attributes to improve execution speed. Calling the getter
function will execute faster 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
Creates a getter function called
getlevel = makegetter(smua.source, "levelv")
...
v = getlevel()
When getlevel is called, it returns the value of smua.source.levelv.
12-42
Series 2600 System SourceMeter® Instruments Reference Manual
The name of the variable.
The value assigned to the variable.
-
- Reads show errors state
- Set to 0 or 1.
Section 9
Read-only table were the attribute is located.
The string name of the attribute.
Function that returns the value of the given
attribute.
:
getlevel
Return to
Section Topics
.
for details about TSP-Link.
2600S-901-01 Rev. C / January 2008

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

26362602261126122635

Table of Contents