Functions And Attributes - Keithley 2601 Reference Manual

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

Advertisement

Series 2600 System SourceMeter® Instruments Reference Manual

Functions and attributes

Commands can be function based or attribute based.
Functions
Function based commands are used to control actions or activities. For example, performing a
voltage measurement is a function (action) of a SMU. A function based command is not
necessarily directly related to a Series 2600 operation. For example, the
logically AND two numbers.
Each function consists of a function name followed by a set of parenthesis (
does not have a parameter, the parenthesis set is left empty. Examples:
digio.writeport(15)
digio.writebit(3, 0)
smua.reset()
digio.readport()
The results of a function call are used by assigning the return values to variables and accessing
those variables. The following code will measure SMU A voltage and return the reading:
reading = smua.measure.v()
print(reading)
Output:
The above output indicates that the voltage reading is 2.36V.
For a function that returns one value, the function call can be used in an expression. For example:
if smua.measure.v() > 5 then
...
end
Attributes
An attribute is a characteristic of an instrument feature or operation. For example, some
characteristics of a SMU source include the source function, range and output level.
Assigning a value to an attribute
An attribute-based command can be used to assign a new value to an attribute. For many
attributes, the value can be in the form of a discrete number or a predefined identifier. For
example, filter type is an attribute. The moving average filter is selected by assigning the attribute
to either of the following values:
or
0
smuX.FILTER_MOVING_AVG
Either of the following command messages will configure SMU A for the moving average filter:
smua.measure.filter.type = 0
smua.measure.filter.type = smua.FILTER_MOVING_AVG
Some attributes can take any numeric value that is within a valid range. For example, the Model
2601/2602 voltage source can be set from -40.4V to +40.4V, while the Model 2611/2612 voltage
source can be set from -202V to +202V. The following command message sets the SMU A source
level to 1.53V:
smua.source.levelv = 1.53
2600S-901-01 Rev. C / January 2008
2.360000e+00
.
Return to
Sets digital I/O lines 1, 2, 3 and 4 high.
Sets line 3 low (0).
Returns SMU A to its default settings.
Reads the digital I/O port.
Section Topics
Section 12: Instrument Control Library
function will
bit.bitand
). If the function
()
12-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

26362602261126122635

Table of Contents