![background image](http://html2.mh-extra.com/html/keithley/system-sourcemeter-2601b/system-sourcemeter-2601b_reference-manual_4009934257.webp)
Series 2600B System SourceMeter® Instrument Reference Manual
Section 5: Introduction to TSP operation
2600BS-901-01 Rev. B / May 2013
5-3
Information on scripting and programming
If you need information about using scripts with your TSP-enabled instrument, see
Fundamentals of
scripting for TSP
(on page 6-1).
If you need information about using the Lua programming language with the instrument, see
Fundamentals of programming for TSP
(on page 6-11).
About TSP commands
This section contains an overview of the TSP commands for the instrument. The commands are
organized into groups, with a brief description of each group. Each section contains links to the
detailed descriptions for each command in the TSP command reference section of this
documentation (see
TSP commands
Beeper control
The beeper commands allow you to enable or disable and sound the instrument beeper.
beeper.beep()
(on page 7-7)
beeper.enable
(on page 7-7)
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.
Summary of Contents for System SourceMeter 2601B
Page 841: ......