The following programming example illustrates how to prompt the operator to enter a source voltage
value for SMU A:
display.clear()
value = display.prompt("0.00", "V", "Enter source voltage")
display.screen = display.SMUA
smua.source.levelv = value
The script pauses after displaying the prompt message and waits for the operator to enter the voltage
level. The display then toggles to the source-measure display for SMU A and sets the source level
to value.
If the operator presses EXIT(LOCAL) instead of entering a source value, value is set to nil.
The second line of the above code can be replaced using the other input field function:
value = display.inputvalue("0.00")
The only difference is that the display prompt does not include the “V” units designator and the Enter
source value message.
Indicators
To determine which front-panel display indicators are turned on, use the
display.getannunciators() function. For example, 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.