12-26 Instrument Control Library Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006 Return to Section 12 topics
Example Reads the annunciators that are turned on:
annun = display.getannunciators()
print(annun)
Output: 1.280000e+03
For the returned value of 1280, the binary equivalent is 0000010100000000. Bits 9 and
11 are set. Using the above chart in “Remarks”, the REM and EDIT annunciators are
turned on.
display.getcursor
Function Reads the present position of the cursor for the user display.
Usage
row, column, style = display.getcursor()
row Returns the row for the present cursor position.
column Returns the column for the present cursor position.
style Returns the cursor style.
Remarks
• This function switches the display to the user screen, and then returns values to
indicate row and column position, and cursor style.
• The row value is returned as 1 (top row) or 2 (bottom row).
• With the cursor in the top row, the column is returned as a value from 1 to 20. With
the cursor in the bottom row, the
column is returned as a value from 1 to 32.
Columns are numbered from left to right on the display.
• The returned value for style is 0 (invisible) or 1 (blink).
Details See “Cursor position” on Section 14.
Also see display.gettext, display.screen, display.setcursor, display.settext
Example
Reads cursor position (row and column):
row, column = display.getcursor()
print(row, column)
Output: 1.000000e+00 3.000000e+00
The above output indicates that the cursor is in Row 1 at Column 3.