High Voltage SourceMeter Instrument Reference Manual  Section 14: TSP comm
 
2470-901-01 Rev. A / May 2019  14-237
Also see 
Configuration lists (on page 4-83) 
trigger.model.setblock() — trigger.BLOCK_CONFIG_PREV 
This function defines a trigger model block that recalls the settings stored at the previous index in a source or 
measure configuration list, or both a source and measure configuration list. 
Type  TSP-Link accessible  Affected by  Where saved  Default value 
Function  Yes  Restore configuration 
Instrument reset 
Configuration script  Not applicable 
Usage 
trigger.model.setblock(blockNumber, trigger.BLOCK_CONFIG_PREV, "configurationList") 
trigger.model.setblock(blockNumber, trigger.BLOCK_CONFIG_PREV, "configurationList", 
"optionalConfigList") 
The sequence of the block in the trigger model 
A string that defines the source or measure configuration list to 
recall 
A string that defines the second configuration list to recall the 
index from; must be the opposite type of list than the first; for 
example, if the first configuration list is a measure list, the second 
configuration list must be a source list 
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 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 earlier 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. 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. 
The configuration lists must be defined before you can use this block.