Tektronix KEITHLEY SourceMeter 2606B Reference Manual page 383

Table of Contents

Advertisement

Section 15: TSP command reference
bit.bitxor()
This function performs a bitwise logical XOR (exclusive OR) operation on two numbers.
Type
TSP-Link accessible
Function
No
Usage
result = bit.bitxor(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.bitxor(10, 9)
print(testResult)
Performs a logical XOR operation on decimal 10 (binary 1010) with decimal 9 (binary 1001), which returns a
value of decimal 3 (binary 0011).
Output:
3.00000e+00
Also see
Bit manipulation and logic operations
bit.bitand()
(on page 15-8)
bit.bitor()
(on page 15-9)
bit.clear()
This function clears a bit at a specified index position.
Type
TSP-Link accessible
Function
No
Usage
result = bit.clear(value, index)
result
value
index
15-10
Model 2606B System SourceMeter® Instrument Reference Manual
Affected by
Where saved
Result of the logical XOR operation
Operand for the logical XOR operation
Operand for the logical XOR operation
(on page 13-4)
Affected by
Where saved
Result of the bit manipulation
Specified number
One-based bit position within value to clear (1 to 32)
Default value
Default value
2606B-901-01 Rev. C November 2021

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KEITHLEY SourceMeter 2606B and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents