User manual
Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-76 3700S-901-01 Rev. C / July 2008
channel.setlabel()
Example
To set the label for Channel 1 on Slot 1 to "start":
channel.setlabel('1001', 'start')
To clear the label for Channel 1 on Slot 1 back to '1001'
channel.setlabel('1001', '')
or
channel.setlabel('1001', ' ')
channel.setmatch()
Function
Sets the match value on a channel.
Usage
channel.setmatch(<ch_list>, <match value>, [<mask>,
[<width>]])
ch_list: String specifying the channels to query, using normal channel list syntax.
match_value: Channel value to compare on the specified channel.
mask: Optional value to specify bits used to mask <match_value>.
width: Optional value that specifies matches over multiple consecutive channels.
Remarks
The mask is AND‟ed bitwise to the match value to determine the final match value
used on the channel.
The mask and width arguments are optional. A mask must be specified in order to
specify a width. The default width is 1. The default mask is channel.ALL (all bits).
For digital I/O channels, a width of 1, 2, 3, or 4 channels is supported. Any information
(bits) greater than the specified width are ignored. If a width crosses channels, the
match status indicator is only on the channel specified in the match value. For
example, setting a value with a 2 width on Channel 3 drives the indicator on Channel
3, not Channel 4. Match values for output channels are ignored.
Totalizer and DAC channels only support a width of 1.
Switch and backplane channels are not supported.
Also see
channel.getmatch() (on page 13-53)
Example
To generate a match state event on Bit 6 of Digital I/O Channel 1:
channel.setmatchtype("1001", channel.MATCH_EXACT)
channel.setmatch("1001", 32)
channel.setmatchtype()
Function
Sets the match type on a channel.
Usage
channel.setmatchtype(<ch_list>, <type>)
ch_list: String specifying the channels to set, using normal channel list syntax.
type: A value for setting the match operation used on this specific channel.