8: TSP command reference Model 2461 Interactive SourceMeter® Instrument
8-284 2461-901-01 A/November 2015
Example 2
trigger.model.load("Empty")
trigger.model.setblock(1, trigger.BLOCK_CONFIG_RECALL, "measTrigList")
trigger.model.setblock(2, trigger.BLOCK_BUFFER_CLEAR)
trigger.model.setblock(3, trigger.BLOCK_CONFIG_NEXT, "measTrigList")
print(trigger.model.getblocklist())
Recall index 1 of a configuration list named measTrigList.
Clear reading buffer named defbuffer1.
Recall the second index of a configuration list named measTrigList.
Output:
1) CONFIG_RECALL CONFIG_LIST: measTrigList INDEX: 1
2) BUFFER_CLEAR BUFFER: defbuffer1
3) CONFIG_NEXT CONFIG_LIST: measTrigList
Example 3
trigger.model.setblock(7, trigger.BLOCK_CONFIG_NEXT, "measTrigList",
"sourTrigList")
Configure trigger block 7 to load the next index in both the configuration list named measTrigList and the
configuration list named sourTrigList.
Also see
Configuration lists (on page 3-30)
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