System SourceMeter® Instrument Reference Manual Section 7:
2600BS-901-01 Rev. B / May 2013 7-61
display.getannunciators()
This function reads the annunciators (indicators) that are presently turned on.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
annunciators = display.getannunciators()
The bitmasked value that shows which indicators are turned on
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
4W 3 4
display.ANNUNCIATOR_4_WIRE
display.ANNUNCIATOR_TRIGGER
display.ANNUNCIATOR_SAMPLE
ERR 10 512
display.ANNUNCIATOR_ERROR
display.ANNUNCIATOR_REMOTE
LSTN 13 4096
display.ANNUNCIATOR_LISTEN
REL 16 32768
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