EasyManuals Logo

Tektronix Keithley 2601B-PULSE Reference Manual

Tektronix Keithley 2601B-PULSE
849 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #278 background imageLoading...
Page #278 background image
Section 9: Introduction to TSP operation Model 2601B-PULSE System SourceMeter Instrument Reference Manual
9-4 2601B-PULSE-901-01A April 2020
Bit manipulation and logic operations
The bit functions perform bitwise logic operations on two given numbers, and bit operations on one
given number. Logic and bit operations truncate the fractional part of given numbers to make
them integers.
Logic operations
The bit.bitand(), bit.bitor(), and bit.bitxor() functions in this group perform bitwise
logic operations on two numbers. The Test Script Processor (TSP
®
) scripting engine performs the
indicated logic operation on the binary equivalents of the two integers. This bitwise logic operation is
performed on all corresponding bits of the two numbers. The result of a logic operation is returned as
an integer.
Bit operations
The rest of the functions in this group are used for operations on the bits of a given number. These
functions can be used to:
â–ª Clear a bit
â–ª Toggle a bit
â–ª Test a bit
â–ª Set a bit or bit field
â–ª Retrieve the weighted value of a bit or field value
All these functions use an index parameter to specify the bit position of the given number. The least
significant bit of a given number has an index of 1, and the most significant bit has an index of 32.
The Test Script Processor (TSP) scripting engine stores all numbers internally as IEEE Std 754
double-precision floating-point values. The logical operations work on 32-bit integers. Any fractional
bits are truncated. For numbers larger than 4294967295, only the lower 32 bits are used.
bit.bitand() (on page 11-9)
bit.bitor() (on page 11-10)
bit.bitxor() (on page 11-10)
bit.clear() (on page 11-11)
bit.get() (on page 11-12)
bit.getfield() (on page 11-13)
bit.set() (on page 11-14)
bit.setfield() (on page 11-15)
bit.test() (on page 11-16)
bit.toggle() (on page 11-17)

Table of Contents

Other manuals for Tektronix Keithley 2601B-PULSE

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix Keithley 2601B-PULSE and is the answer not in the manual?

Tektronix Keithley 2601B-PULSE Specifications

General IconGeneral
BrandTektronix
ModelKeithley 2601B-PULSE
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals