11-6 Return to Section Topics 2600AS-901-01 Rev. B / September 2008
Section 11: Display Operations Series 2600A System SourceMeter® Instruments Reference Manual
Example: The following code will display “Test in Process” on the top line, and “Do Not Disturb” on
the bottom line:
display.clear()
display.setcursor(1, 1, 0)
display.settext("Test in Process")
display.setcursor(2, 6, 0)
display.settext("Do Not Disturb")
Character codes
The following special codes can be embedded in the text string to configure and customize the
message:
$N Newline – Starts text on the next line. If the cursor is already on line 2, text will be ignored
after the ‘
$N’ is received.
$R Sets text to Normal.
$B Sets text to Blink.
$D Sets text to Dim intensity.
$F Set text to background blink.
$$ Escape sequence to display a single “$”.
In addition to displaying alpha-numeric characters, other special characters can be displayed.
Refer to
Appendix D for a compete listing of special characters and their corresponding codes. For
example, to display the Greek symbol omega, Ω, use the following:
display.clear()
c = string.char(18)
display.settext(c)
Examples
The following code uses the $N and #B character codes to display the message “Test in Process”
on the top line and the blinking message “Do Not Disturb” on the bottom line:
display.clear()
display.settext("Test in Process $N$BDo Not Disturb")
The following code uses the $$ character code to display the message “You owe me $8” on the top
line:
display.clear()
display.setcursor(1, 1)
display.settext("You owe me $$8")
If the extra $ character is not included, the $8 would be interpreted as an undefined character code
and will be ignored. The message “You owe me” will instead be displayed.