Series 3700A System Switch/Multimeter Reference Manual Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018 11-127
display.getannunciators()
This function reads the annunciators (indicators) that are presently turned on.
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
display.ANNUNCIATOR_FILTER
display.ANNUNCIATOR_4_WIRE
display.ANNUNCIATOR_TRIGGER
display.ANNUNCIATOR_SAMPLE
display.ANNUNCIATOR_ERROR
display.ANNUNCIATOR_REMOTE
display.ANNUNCIATOR_LISTEN
testAnnunciators = display.getannunciators()
print(testAnnunciators)
rem = bit.bitand(testAnnunciators, 1024)
if rem > 0 then
print("REM is on")
else
print("REM is off")
end
REM indicator is turned on.
Output:
1.28000e+03
REM is on