Keithley SourceMeter 2600 Series Reference Manual page 288

Table of Contents

Advertisement

12-14 Instrument Control Library
Example
AND'ing decimal 10 (binary 1010) with decimal 9 (binary 1001) will return a value of
decimal 8 (binary 1000):
value = bit.bitand(10, 9)
print(value)
Output:
bit.bitor
Function
Performs a bitwise logical OR operation on two numbers.
Usage
value = bit.bitor(value1, value2)
value1
value2
value
• This function performs a logical OR operation on two numbers.
Remarks
• Any fractional parts of
The returned
• See
Also see
bit.bitand,
Example
OR'ing decimal 10 (binary 1010) with decimal 9 (binary 1001) will return a
decimal 11 (binary 1011):
value = bit.bitor(10, 9)
print(value)
Output:
bit.bitxor
Function
Performs a bitwise logical XOR (Exclusive OR) operation on two numbers.
Usage
value = bit.xor(value1, value2)
value1
value2
value
• This function performs a logical Exclusive OR operation on two numbers.
Remarks
• Any fractional parts of
The returned
• See
Also see
bit.bitand,
2600S-901-01 Rev. A / May 2006
8.000000e+00
First number for the OR operation.
Second number for the OR operation.
Returned result of the OR operation.
value1
is also an integer.
value
"Logic and bit
operations" on
bit.bitxor
1.100000e+01
First number for the XOR operation.
Second number for the XOR operation.
Returned result of the XOR operation.
value1
is also an integer.
value
"Logic and bit
operations" on
bit.bitor
Return to
Series 2600 System SourceMeters Reference Manual
and
are truncated to make them integers.
value2
page 12-13
for more information.
and
are truncated to make them integers.
value2
page 12-13
for more information.
Section 12 topics
of
value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents