Section 11: TSP command reference Series 3700A System Switch/Multimeter Reference Manual
11-92 3700AS-901-01 Rev. D/June 2018
channel.setlabel("3001", " ")
Also clears the label for channel 1 slot 3 back
to "3001".
Also see
Channel (on page 9-23)
channel.setmatch()
This function sets the match value on a digital input or totalizer channel.
Restore setup
Instrument reset
Power cycle
Channel reset
Usage
channel.setmatch("channelList", matchValue)
channel.setmatch("channelList", matchValue, mask)
channel.setmatch("channelList", matchValue, mask, width)
String that specifies the channels to query, using normal channel list syntax
Channel value to compare on the specified channel
Value to specify the bits used to mask matchValue
Value that specifies matches over multiple consecutive channels (default 1)
Details
You can use matching to set a state or generate an event when the digital I/O or totalizer count
matches a value, instead of continually reading the digital input or totalizer.
The default mask is all bits.
For digital I/O channels, a width of 1, 2, 3, or 4 channels is supported. Any 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, and mask is ignored.
Switch and backplane channels are not supported. If they are included in a range or slot specifier,
they are ignored. If they are specified directly, an error is generated.
Example 1
channel.setmatchtype("1001",
channel.MATCH_EXACT)
channel.setmatch("1001", 32)
Generates a match state event on bit B6 of
digital I/O channel 1, assuming a 3750.
channel.setmatchtype("6007",
channel.MATCH_EXACT)
channel.setmatch("6007", 300)
Assuming a 3750, configure the totalizer
channel 7 on slot 6 to generate a match
state event when it reaches 300.