User manual

Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-24 3700S-901-01 Rev. C / July 2008
bit.toggle()
Also see
Logic and bit operations (on page 13-17)
bit.clear() (on page 13-19)
bit.get() (on page 13-19)
bit.getfield() (on page 13-20)
bit.set() (on page 13-21)
bit.setfield() (on page 13-21)
bit.test() (on page 13-22)
Example
The binary equivalent of decimal 10 is 1010. Toggling the bit at index position 3 will
return a decimal value of 14 (binary 1110).
value = bit.toggle(10, 3)
print(value)
Output: 1.400000e+01
channel functions and attributes
Use the functions and attributes in this group to control and query switching
channels. Unless specifically noted, <ch_list> specifies the channels,
backplane relays, and channel patterns in a comma-delimited format on which
the function is to be performed. The following figure shows this format:
Figure 13-1: ch_list legend