Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-285
Details
If two configuration lists are specified with this command, they must not be of the same type. For
example, if the first configuration list is a measure configuration list, the second configuration list must
be a source configuration list. The order of the configuration lists does not matter with this command,
as long as they are of the opposite type.
The Config List Prev building block defines a trigger model block that recalls the settings stored at the
previous index in a source or measure configuration list if a single configuration list is specified. If
both measure and source configuration lists are specified, measure and source settings are each
recalled from the previous index in each list when this block is reached. The index numbers recalled
may not match; it depends on the number of indexes in each list and what index number each list is
on.
The configuration list previous index trigger block type recalls the previous index in a configuration
list. It configures the source or measure settings of the instrument based on the settings at that index.
The trigger model executes the settings at that index before the next block is executed.
The first time the trigger model encounters this block, the last index in the configuration list is recalled
if the list has not already had an index recalled by the recall block command in an earilier trigger
model block. If the configuration list has recalled an index with the recall block, the previous index in
the list is called instead of the last. For example, the recall block recalls index 1 by default, so if the
trigger model uses a recall block before this one, the first time the previous block is reached after that
recall, the last index is recalled. However, if the recall block recalled index 3, the previous block would
recall index 2. See the second example below for an illustration of this. Each subsequent time trigger
model execution reaches a configuration list previous block for this configuration list, it goes backward
one index. When the first index in the list is reached, it goes to the last index in the configuration list.
You must create the configuration lists before you can define them in this building block.
Example 1
trigger.model.setblock(8, trigger.BLOCK_CONFIG_PREV, "measTrigList")
Configure trigger block 8 to load the previous index in the configuration list named measTrigList.
Example 2
trigger.model.load("Empty")
trigger.model.setblock(1, trigger.BLOCK_CONFIG_RECALL, "measTrigList", 3)
trigger.model.setblock(2, trigger.BLOCK_BUFFER_CLEAR)
trigger.model.setblock(3, trigger.BLOCK_CONFIG_PREV, "measTrigList")
print(trigger.model.getblocklist())
Clear the trigger model.
Recall index 3 of a configuration list named
measTrigList
.
Clear reading buffer named
defbuffer1
.
Then, recall the second index of a configuration list named
measTrigList
.
Output:
1) CONFIG_RECALL CONFIG_LIST: measTrigList INDEX: 3
2) BUFFER_CLEAR BUFFER: defbuffer1
3) CONFIG_PREV CONFIG_LIST: measTrigList