
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-278
2461-901-01 A/November 2015
•
Inside: The measurement is inside the values set by limits A and B; limit A must be the low value
and Limit B must be the high value
•
Outside: The measurement is outside the values set by limits A and B; limit A must be the low
value and Limit B must be the high value
The measurement block must be a measure or digitize building block that occurs in the trigger model
before the branch-on-constant-limits block. The last measurement from a measure or digitize building
block is used.
If the limit A is more than the limit B, the values are automatically swapped so that the lesser value is
used as the lower limit.
Example
trigger.model.setblock(5, trigger.BLOCK_BRANCH_LIMIT_CONSTANT, trigger.LIMIT_ABOVE,
.1, 1, 2)
Sets trigger block 5 to be a constant limit that branches to block 2 when the measurement is above the value set
for limit B (which is set to 1). Note that limit A must be set, but is ignored.
Also see
(on page 3-119)
trigger.model.setblock() —
trigger.BLOCK_BRANCH_LIMIT_DYNAMIC
This function defines a trigger model block that goes to a specified block in the trigger model if a measurement
meets user-defined criteria.
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_LIMIT_DYNAMIC,
limitType
,
limitNumber
,
branchToBlock
)
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BRANCH_LIMIT_DYNAMIC,
limitType
,
limitNumber
,
branchToBlock
,
measureBlock
)
blockNumber
The sequence of the block in the trigger model
limitType
The type of limit, which can be one of the following types:
•
trigger.LIMIT_ABOVE
•
trigger.LIMIT_BELOW
•
trigger.LIMIT_INSIDE
•
trigger.LIMIT_OUTSIDE
limitNumber
The limit number (
1
or
2
)
branchToBlock
The block number of the trigger model block to execute when
the measurement meets the criteria set in the configuration list
measureBlock
The block number of the measure or digitize block that makes
the measurements to be compared; if this is
0
or undefined, the
trigger model uses the previous measure or digitize block