Keithley 3700 series Reference Manual page 155

System switch/multimeter
Hide thumbs Also See for 3700 series:
Table of Contents

Advertisement

Series 3700 System Switch/Multimeter Reference Manual
bit.bitor
Also see
Example
bit.bitxor
Function
Usage
Remarks
Details
Example
bit.clear
Function
Usage
Remarks
Document Number: 3700S-901-01 Rev. A / August 2007
Logic and bit operations
bit.bitand
(on page 9-10)
bit.bitxor
(on page 9-11)
Performs a bitwise logical OR operation on decimal 10 (binary 1010) with decimal 9
(binary 1001) will return a value of decimal 11 (binary 1011):
value = bit.bitor(10, 9)
print(value)
Output: 1.100000e+01
Performs a bitwise logical XOR (Exclusive OR) operation on two numbers.
value = bit.xor(value1, value2)
value1: First number for the XOR operation.
value2: Second number for the XOR operation.
value: Returned result of the XOR operation.
This function performs a logical Exclusive OR operation on two numbers.
Any fractional parts of value1 and value2 are truncated to make them integers.
The returned value is also an integer.
Logic and bit operations
bit.bitor
(on page 9-10)
Performs a bitwise logical exclusive OR operation on decimal 10 (binary 1010) with
decimal 9 (binary 1001) will return a value of decimal 3 (binary 0011):
value = bit.bitxor(10, 9)
print(value)
Output: 3.000000e+00
Clears a bit at a given index position.
value = bit.clear(value1, index)
value1: Given number.
index: Index position of the bit to be cleared (1 to 32).
value: Returns the result of the manipulation.
This function clears a bit at a given index position.
Any fractional part of value1 is truncated to make it an integer. The returned value
is also an integer.
The least significant bit of the given number is at index 1. The most significant bit
is at index 32.
Section 9: Instrument Control Library (ICL)
(on page 9-9)
(on page 9-9)
9-11

Advertisement

Table of Contents
loading

Table of Contents