Bit.bitor() - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Section 7: Command reference
Example
testResult = bit.bitand(10, 9)
print(testResult)
Also see

bit.bitor()

(on page 7-10)
bit.bitxor()
(on page 7-11)
Logical operators
bit.bitor()
This function performs a bitwise logical OR operation on two numbers.
Type
TSP-Link accessible
Function
No
Usage
result = bit.bitor(value1, value2)
result
value1
value2
Details
Any fractional parts of value1 and value2 are truncated to make them integers. The returned result is also
an integer.
Example
testResult = bit.bitor(10, 9)
print(testResult)
Also see
bit.bitand()
(on page 7-9)
bit.bitxor()
(on page 7-11)
Logical operators
7-10
(on page 6-22)
Affected by
Result of the logical OR operation
Operand for the logical OR operation
Operand for the logical OR operation
(on page 6-22)
Models 707B and 708B Switching Matrix Reference Manual
Performs a logical AND operation on decimal 10
(binary 1010) with decimal 9 (binary 1001), which
returns a value of decimal 8 (binary 1000).
Output: 8.0000000e+00
Where saved
Default value
Performs a bitwise logical OR operation on decimal
10 (binary 1010) with decimal 9 (binary 1001), which
returns a value of decimal 11 (binary 1011).
Output: 1.1000000e+01
707B-901-01 Rev. A / August 2010

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents