Tsp-Link Nodes - Keithley 2601 Reference Manual

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

Advertisement

Section 12: Instrument Control Library
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
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,
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

TSP-Link nodes

Each instrument or enclosure attached to the TSP-Link bus must be uniquely identified. This
identification is called a TSP-Link node number, and the enclosures are called nodes. Each node
must be assigned a unique node number.
From a Test script program (TSP) point of view, nodes look like tables. There is one global table
named node that contains all the actual nodes that are themselves tables. An individual node is
accessed as node[N] where N is the node number assigned to the node. Each node has certain
attributes that can be accessed as elements of its associated table. These are listed as follows:
id
model
revision
serialno
There is also an entry for each logical instrument on the node (see
It is not necessary to know the node number of the node running a script. The variable localnode
is an alias for the node entry the script is running on. For example, if a script is running on node 5,
the global variable localnode will be an alias for node[5] .
12-4
function, which outputs a value:
print
0.000000e+00
filtertype
The node number assigned to the node.
The product model number string of the node.
The product revision string of the node.
The product serial number string of the node.
Return to
Series 2600 System SourceMeter® Instruments Reference Manual
:
-- Whitespaces NOT used in string.
-- Whitespaces used in string.
digio.writebit
Section Topics
is the attribute
OUTPUT_DCVOLTS
function.
"Logical
instruments").
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