Section 11: TSP command reference Model 2601B-PULSE System SourceMeter Instrument Reference Manual
11-70 2601B-PULSE-901-01A April 2020
display.settext()
This function displays text on the front-panel user screen.
Usage
display.settext("text")
Text message to be displayed, with optional character codes
Details
This function selects the user display screen and displays the given text.
After the instrument is turned on, the first time you use a display command to write to the display, the
message "User Screen" is cleared. After the first write, you need to use display.clear() to clear
the message.
The display.clear(), display.setcursor(), and display.settext() functions are
overlapped commands. That is, the script does not wait for one of these commands to complete.
These functions do not immediately update the display. For performance considerations, they update
the display as soon as processing time becomes available.
The text starts at the present cursor position. After the text is displayed, the cursor is after the last
character in the display message.
Top line text does not wrap to the bottom line of the display automatically. Any text that does not fit on
the current line is truncated. If the text is truncated, the cursor remains at the end of the line.
The text remains on the display until replaced or cleared.
The character codes described in the following table can be also be included in the text string.
Newline, starts text on the next line; if the cursor is already on line 2, text will be ignored
after the $N is received
Sets text to normal intensity, nonblinking
Sets text to dim intensity
Sets the text to background blink
Escape sequence to display a single dollar symbol ($)
Example
display.clear()
display.settext("Normal $BBlinking$N")
display.settext("$DDim $FBackgroundBlink$R $$$$ 2 dollars")
This example sets the display to:
Normal Blinking
Dim BackgroundBlink $$ 2 dollars
with the named effect on each word.