System SourceMeter® Instrument Reference Manual Section 7:
2600BS-901-01 Rev. C / August 2016 7-67
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 Bit Weighted
value
Equivalent constant
display.ANNUNCIATOR_FILTER
MATH 2 2
display.ANNUNCIATOR_4_WIRE
ARM 5 16
display.ANNUNCIATOR_TRIGGER
display.ANNUNCIATOR_SAMPLE
display.ANNUNCIATOR_ERROR
display.ANNUNCIATOR_REMOTE
TALK 12 2048
display.ANNUNCIATOR_LISTEN
REAR 15 16384
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")
REM indicator is turned on.
Output:
1.28000e+03
REM is on
Example 2
print(display.ANNUNCIATOR_EDIT)
print(display.ANNUNCIATOR_TRIGGER)
print(display.ANNUNCIATOR_AUTO)
Output:
2.56000e+02
3.20000e+01
Also see
bit.bitand() (on page 7-9)