EasyManuals Logo
Home>Keithley>Measuring Instruments>2600B

Keithley 2600B User Manual

Keithley 2600B
897 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 #352 background imageLoading...
Page #352 background image
Series 2600B
System SourceMeter® Instrument Reference Manual Section 7:
TSP command reference
2600BS-901-01 Rev. C / August 2016 7-13
Usage
result = bit.getfield(value, index, width)
result
Result of the bit manipulation
value
Specified number
index
One-based bit position within
value
to get (1 to 32)
width
The number of bits to include in the field (1 to 32)
Details
A field of bits is a contiguous group of bits. This function retrieves a field of bits from value starting at
index.
The index position is the least significant bit of the retrieved field. The number of bits to return is
specified by width.
The least significant bit of value is at index position 1; the most significant bit is at index position
32.
Example
myResult = bit.getfield(13, 2, 3)
print(myResult)
The binary equivalent of decimal 13 is 1101.
The field at index position 2 and width 3
consists of the binary bits 110. The returned value
is decimal 6 (binary 110).
Output:
6.00000e+00
Also see
Bit manipulation and logic operations (on page 5-3)
bit.get() (on page 7-12)
bit.set() (on page 7-13)
bit.setfield() (on page 7-14)
bit.set()
This function sets a bit at the specified index position.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
result = bit.set(value, index)
result
Result of the bit manipulation
value
Specified number
index
One-based bit position within value to set (1 to 32)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2600B and is the answer not in the manual?

Keithley 2600B Specifications

General IconGeneral
BrandKeithley
Model2600B
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals