
Section 3: Functions and features
Model 2461 Interactive SourceMeter® Instrument Reference Manual
3-144
2461-901-01 A/November 2015
-- adjust as appropriate.
trigger.model.setblock(20, trigger.BLOCK_DELAY_CONSTANT, 0.001)
-- Block 21: Set digital I/O lines 1-4; output decimal 0 (binary 0000)
-- clear pattern to component handler.
trigger.model.setblock(21, trigger.BLOCK_DIGITAL_IO, 0, 15)
-- Block 22: Notify block generates event, which causes output
-- of a trigger pulse on digital I/O line 6.
trigger.model.setblock(22, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY1)
-- Block 23: Loop back to Block 2; keep looping until
-- all resistors have been tested.
trigger.model.setblock(23, trigger.BLOCK_BRANCH_COUNTER, number_of_resistors, 2)
-- After executing all of the above commands the trigger model can be initiated
-- by executing trigger.model.initiate().
Resistor sorting using limit testing with multiple limits
This example inspects multiple resistors until it detects the first pass. This example uses a trigger
model using constant limits.
This trigger model provides support for inspecting the output of a single test against multiple limits.
The trigger model count block determines the number of devices that will be tested. A test refers to a
single source or measure operation. After a measurement for a particular test is performed, it is
checked against any enabled limits. The software limits are inspected in ascending numeric order
until the first pass is detected. When a pass condition is detected, the pass bit pattern assigned to the
limit that passed is output to the digital I/O port, and any subsequent limit inspections are aborted. If
all limit inspections for the test fail, the overall fail bit pattern is output.