High Voltage SourceMeter Instrument Reference Manual Section 14:
2470-901-01 Rev. A / May 2019 14-227
trigger.model.setblock() — trigger.BLOCK_BRANCH_ALWAYS
This function defines a trigger model block that always goes to a specific block.
Type TSP-Link accessible Affected by Where saved Default value
Instrument reset
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_BRANCH_ALWAYS, branchToBlock)
The sequence of the block in the trigger model
The block number to execute when the trigger model reaches the Branch Always
Details
When the trigger model reaches a branch-always building block, it goes to the building block set by
branchToBlock.
Example
trigger.model.setblock(6, trigger.BLOCK_BRANCH_ALWAYS, 20)
When the trigger model reaches block 6, always branch to block 20.
Also see
None
trigger.model.setblock() — trigger.BLOCK_BRANCH_COUNTER
This function defines a trigger model block that branches to a specified block a specified number of times.
Type TSP-Link accessible Affected by Where saved Default value
Instrument reset
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_BRANCH_COUNTER, targetCount,
branchToBlock)
The sequence of the block in the trigger model
The number of times to repeat
The block number of the trigger model block to execute when the counter is less than
the targetCount value
Details
This command defines a trigger model building block that branches to another block using a counter
to iterate a specified number of times.
Counters increment every time the trigger model reaches them until they are more than or equal to
the count value. At that point, the trigger model continues to the next building block in the sequence.