User manual

Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-77
channel.setmatchtype()
Remarks
There are four types of match values:
channel.MATCH_EXACT
channel.MATCH_ANY
channel.MATCH_NOT_EXACT
channel.MATCH_NONE
For an EXACT match, the state match indicator only becomes TRUE when the match
value AND match mask value EQUAL the channel read value.
For an ANY match, the state match indicator only becomes TRUE when the match
value OR match mask value EQUAL the channel read value.
For a NOT_EXACT match, the state match indicator only becomes TRUE when the
match value AND match mask value AND channel read value are NOT EQUAL to the
match value AND match mask value AND last channel read value. In other words, the
match value should be the current value, and if the value changes at all away from the
original value, then a match is declared.
For NONE, matching is effectively disabled. This is the default.
For totalizer channels, only MATCH_EXACT and MATCH_NONE are supported.
DAC, backplane, and switch channels are not supported.
Also see
channel.getmatchtype() (on page 13-54)
Example
To define the match type for digital I/O Channel 1 to be a MATCH_EXACT type:
channel.setmatchtype("1001", channel.MATCH_EXACT)
channel.setmode()
Function
Sets the mode attribute on a channel.
Usage
channel.setmode(<ch_list>, <mode>)
ch_list: String specifying the channels to set, using normal channel list syntax.
mode: The value that sets the mode of a channel‟s operation.