2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
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
Function
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
Not applicable
Usage
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BRANCH_ALWAYS,
branchToBlock
)
blockNumber
The sequence of the block in the trigger model
branchToBlock
The block number to execute when the trigger model reaches the Branch Always
block
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
Function
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script
Not applicable
Usage
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BRANCH_COUNTER,
targetCount
,
branchToBlock
)
blockNumber
The sequence of the block in the trigger model
targetCount
The number of times to repeat
branchToBlock
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.