Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-181
Example
smu.source.configlist.recall("MySourceList")
Because an index was not specified, this
command recalls configuration index 1
from a configuration list named
MySourceList
.
smu.source.configlist.recall("MySourceList", 5)
Recalls configuration index 5 in a
configuration list named
MySourceList
.
smu.source.configlist.recall("MySourceList", 3,
"MyMeasList")
Recalls index 3 from a source
configuration list named
MySourceList
,
then recalls index 3 from a measure
configuration list named
MyMeasureList
(because the measure list index was not
specified, the instrument automatically
recalled the same index that was called in
the source list).
smu.source.configlist.recall("MySourceList", 3,
"MyMeasList", 5)
Recalls index 3 from a source
configuration list named
MySourceList
,
then recalls index 5 from a measure
configuration list named
MyMeasList
.
Also see
(on page 3-30)
smu.source.configlist.create()
smu.source.configlist.size()
This function returns the number of configuration indexes in a source configuration list.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
indexCount
= smu.source.configlist.size(
listName
)
indexCount
A number that represents the total quantity of indexes stored in the specified source
configuration list
listName
A string that represents the name of a source configuration list
Details
The size of the list is equal to the number of configuration indexes in a configuration list.
Example
print(smu.source.configlist.size("MyScrList"))
Determine the number of configuration
indexes in a source configuration list
named
MyScrList
.
Example output:
2
Also see
(on page 3-30)
smu.source.configlist.create()