Keithley SourceMeter 2600 Series Reference Manual page 278

Table of Contents

Advertisement

12-4
Instrument Control Library
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
Reading an attribute
Reading an attribute is accomplished by passing it to a function call as a
parameter or by assigning it to another variable.
Parameter passing example – The following command reads the filter type for
SMU A by passing the attribute to the
print(smua.measure.filter.type)
Output:
The above output indicates that the moving average filter is selected.
Variable assignment example – The following command reads the filter type by
assigning the attribute to a variable named
filtertype = smua.measure.filter.type
Syntax rules
2600S-901-01 Rev. A / May 2006
Series 2600 System SourceMeters Reference Manual
0.000000e+00
Commands for functions and attributes are case sensitive. As a general
rule, all function and attribute names must be in lower case, while
parameters use a combination of lower and upper case characters. Upper
case characters are required for attribute constants. Example:
smua.source.func = smua.OUTPUT_DCVOLTS
In the above command to select the volts source function,
is the attribute constant.
Whitespace in a function is not required. The function to set digital I/O line 3
low can be sent with or without whitespaces as follows:
digio.writebit(3,0)
digio.writebit (3, 0)
Some commands require multiple parameters. Multiple parameters must
be separated by commas (,), as shown above for the
function.
Return to
function, which outputs a value:
print
filtertype
-- Whitespaces NOT used in string.
-- Whitespaces used in string.
Section 12 topics
:
OUTPUT_DCVOLTS
digio.writebit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents