Display.getcursor(); Display.getlastkey() - Keithley 2651A Reference Manual

High power system sourcemeter instrument
Hide thumbs Also See for 2651A:
Table of Contents

Advertisement

Section 7: Command reference

display.getcursor()

This function reads the present position of the cursor on the front panel display.
Type
TSP-Link accessible
Function
Yes
Usage
row, column, style = display.getcursor()
row
column
style
Details
This function switches the display to the user screen (the text set by display.settext()), and then returns
values to indicate the cursor's row and column position and cursor style.
Columns are numbered from left to right on the display.
Example 1
myRow, myColumn = display.getcursor()
print(myRow, myColumn)
Example 2
print(display.getcursor())
Also see
display.gettext()
display.screen
display.setcursor()
display.settext()

display.getlastkey()

This function retrieves the key code for the last pressed key.
Type
TSP-Link accessible
Function
Yes
7-56
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Affected by
The row where the cursor is: 1 (top row); 2 (bottom row)
The column where the cursor is:
If the cursor is in the top row: 1 to 20
If the cursor is in the bottom row: 1 to 32
Visibility of the cursor: 0 (invisible cursor); 1 (blinking cursor)
(on page 7-58)
(on page 7-67)
(on page 7-69)
(on page 7-70)
Affected by
Where saved
Default value
This example reads the cursor position into local
variables and prints them. Example output:
1.00000e+00
This example prints the cursor position directly.
In this example, the cursor is in row 1 at column
3, with an invisible cursor:
1.00000e+00
3.00000e+00
0.00000e+00
Where saved
Default value
2651A-901-01 Rev. A / March 2011
1.00000e+00

Advertisement

Table of Contents
loading

Table of Contents