![background image](http://html1.mh-extra.com/html/keithley/3700-series/3700-series_user-manual_3935064201.webp)
Section 6: Model 3750 Additional Information
Series 3700 System Switch/Multimeter User's Manual
6-22
3700S-900-01 Rev. C / July 2008
Once the match count is met in the totalizer, the
channel.IND_MATCH
bit is set
and can be read using
match_value = channel.getstate('1006')
Because the default setting for the state is for it to latch, the value remains even
after the count moves beyond the match value. To clear it, use:
channel.resetstatelatch('1006', channel.IND_MATCH)
Using match counts to generate an event
A match can cause an event in the system that can then be used to initiate a
scan. For example:
-- Define a scan
scan.create("6001:6030")
channel.trigger[1].set('1006', channel.IND_MATCH)
scan.trigger.arm.stimulus = channel.trigger[1].EVENT_ID
-- Start the scan so that it is waiting for the event
scan.background()
Once the count matches, the event triggers and satisfies
arm.stimulus
, which
allows the scan to proceed.