Display.getannunciators() - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Series 2600B System SourceMeter® Instrument Reference Manual

display.getannunciators()

This function reads the annunciators (indicators) that are presently turned on.
Type
TSP-Link accessible
Function
Yes
Usage
annunciators = display.getannunciators()
annunciators
Details
This function returns a bitmasked value showing which indicators are turned on. The 16-bit binary equivalent of
the returned value is the bitmask. The return value is a sum of set annunciators, based on the weighted value, as
shown in the following table.
Annunciator (indicator) bitmasked values and equivalent constants
Indicator
FILT
MATH
4W
AUTO
ARM
TRIG
* (star)
SMPL
EDIT
ERR
REM
TALK
LSTN
SRQ
REAR
REL
Example 1
testAnnunciators = display.getannunciators()
print(testAnnunciators)
rem = bit.bitand(testAnnunciators, 1024)
if rem > 0 then
print("REM is on")
else
print("REM is off")
end
2600BS-901-01 Rev. B / May 2013
Affected by
The bitmasked value that shows which indicators are turned on
Bit
Weighted
value
1
1
2
2
3
4
4
8
5
16
6
32
7
64
8
128
9
256
10
512
11
1024
12
2048
13
4096
14
8192
15
16384
16
32768
Where saved
Default value
Equivalent constant
display.ANNUNCIATOR_FILTER
display.ANNUNCIATOR_MATH
display.ANNUNCIATOR_4_WIRE
display.ANNUNCIATOR_AUTO
display.ANNUNCIATOR_ARM
display.ANNUNCIATOR_TRIGGER
display.ANNUNCIATOR_STAR
display.ANNUNCIATOR_SAMPLE
display.ANNUNCIATOR_EDIT
display.ANNUNCIATOR_ERROR
display.ANNUNCIATOR_REMOTE
display.ANNUNCIATOR_TALK
display.ANNUNCIATOR_LISTEN
display.ANNUNCIATOR_SRQ
display.ANNUNCIATOR_REAR
display.ANNUNCIATOR_REL
REM indicator is turned on.
Output:
1.28000e+03
REM is on
Section 7: TSP command reference
7-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents