14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-234 2470-901-01 Rev. A / May 2019
Details
The branch-once building block branches to a specified block the first time trigger model execution
encounters the branch-once block. If it is encountered again, the trigger model ignores the block and
continues in the normal sequence.
The once block is reset when trigger model execution reaches the idle state. Therefore, the
branch-once block always executes the first time the trigger model execution encounters this block.
Example
trigger.model.setblock(2, trigger.BLOCK_BRANCH_ONCE, 4)
When the trigger model reaches block 2, the trigger model goes to block 4 instead of going in the default
sequence of block 3.
Also see
Once block (on page 8-42)
trigger.model.setblock() —
trigger.BLOCK_BRANCH_ONCE_EXCLUDED
This function defines a trigger model block that causes the trigger model to go to a specified building block every
time the trigger model encounters it, except for the first time.
Type TSP-Link accessible Affected by Where saved Default value
Instrument reset
Usage
trigger.model.setblock(blockNumber, trigger.BLOCK_BRANCH_ONCE_EXCLUDED,
branchToBlock)
The sequence of the block in the trigger model
The block number of the trigger model block to execute when the trigger model
encounters this block after the first encounter
Details
The branch-once-excluded block is ignored the first time the trigger model encounters it. After the first
encounter, the trigger model goes to the specified branching block.
The branch-once-excluded block is reset when the trigger model starts or is placed in idle.
Example
trigger.model.setblock(2, trigger.BLOCK_BRANCH_ONCE_EXCLUDED, 4)
When the trigger model reaches block 2 the first time, the trigger model goes to block 3. If the trigger model
reaches this block again, the trigger model goes to block 4.
Also see
Once excluded block (on page 8-42)