
Section 8: TSP command reference
Model 2450 Interactive SourceMeter® Instrument Reference Manual
8-200
2450-901-01 Rev. B/September 2013
trigger.model.setblock() —
trigger.BLOCK_BRANCH_ONCE_EXCLUDED
This command 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
Function
Yes
Restore configuration
Instrument reset
Power cycle
Configuration script Not applicable
Usage
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BRANCH_ONCE_EXCLUDED,
branchToBlock
)
blockNumber
The sequence of the block in the trigger model
branchToBlock
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 building 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.
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
(on page 3-101)