
Model 2461 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2461-901-01 A/November 2015
8-277
trigger.model.setblock() —
trigger.BLOCK_BRANCH_LIMIT_CONSTANT
This function defines a trigger model block that goes to a specified block if a measurement meets preset 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_CONSTANT,
limitType
,
limitA
,
limitB
,
branchToBlock
)
trigger.model.setblock(
blockNumber
, trigger.BLOCK_BRANCH_LIMIT_CONSTANT,
limitType
,
limitA
,
limitB
,
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
limitA
The lower limit that the measurement is tested against; if
limitType
is set to:
•
trigger.LIMIT_ABOVE
: This value is ignored
•
trigger.LIMIT_BELOW
: The measurement must be below this value
•
trigger.LIMIT_INSIDE
: The low limit that the measurement is
compared against
•
trigger.LIMIT_OUTSIDE
: The low limit that the measurement is
compared against
limitB
The upper limit that the measurement is tested against; if
limitType
is set to:
•
trigger.LIMIT_ABOVE
: The measurement must be above this value
•
trigger.LIMIT_BELOW
: This value is ignored
•
trigger.LIMIT_INSIDE
: The high limit that the measurement is
compared against
•
trigger.LIMIT_OUTSIDE
: The high limit that the measurement is
compared against
branchToBlock
The block number of the trigger model block to execute when the measurement
meets the defined criteria
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
Details
The branch-on-constant-limits block goes to a branching block if a measurement meets the criteria
set by this command.
The type of limit can be:
•
Above: The measurement is above the value set by limit B; limit A must be set, but is ignored
when this type is selected
•
Below: The measurement is below the value set by limit A; limit B must be set, but is ignored
when this type is selected