
Section 9: Introduction to TSP operation
Series 3700A System Switch/Multimeter Reference Manual
9-16
3700AS-901-01 Rev. D/June 2018
Example: Interactive script
Code
Output
myFunc = display.menu ("Select function",
"dcvolts twowireohms")
if (myFunc == "dcvolts") then
myRange = display.menu("Select range", "10
100")
if (myRange == "10") then
rangeValue = 10
else
rangeValue = 100
end
else
myRange = display.menu("Select range",
"1000 10000")
if (myRange == "1000") then
rangeValue = 1000
else
rangeValue = 10000
end
end
speed = display.prompt("0.00", "NPLC", "Enter
measure speed", 1, 0.01, 3)
dmm.reset("all")
dmm.func = myFunc
dmm.range = rangeValue
dmm.nplc = speed
print(dmm.measure())
Prompt operator to select function.
Prompt for range based on function selected.
Prompt operator to set the measurement speed.
Wait for operator to set the measurement
speed.
Indicators
To determine which front-panel display indicators are turned on, use the
display.getannunciators()
function. For example, to determine which display indicators are
turned on, send the following commands.
annun = display.getannunciators()
print(annun)
The 16-bit binary equivalent of the returned value is a bitmap. Each bit corresponds to an indicator. If
the bit is set to “1”, the indicator is turned on. If the bit is set to “0”, the indicator is turned off.
The following table identifies the bit position for each indicator. The table also includes the weighted
value of each bit. The returned value is the sum of all the weighted values for the bits that are set.
For example, assume the returned bitmap value is 34061. The binary equivalent of this value is as
follows:
1000010100001101
For t
he above binary number, the following bits are set to “1”: 16, 11, 9, 4, 3, and 1. Using the table,
the following indicators are on: REL, REM, EDIT, AUTO, 4W, and FILT.