Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-69
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)
This example reads the cursor position into local
variables and prints them. An example return is:
1.00000 1.00000
Example 2
print(display.getcursor())
This example prints the cursor position directly. In this example, the
cursor is in row 1 at column 3, with an invisible cursor:
1.00000 3.00000
0.00000
Also see
(on page 7-70)
(on page 7-80)
(on page 7-81)
(on page 7-82)
display.getlastkey()
This function retrieves the key code for the last pressed key.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
keyCode = display.getlastkey()
keyCode
See
Details
for more information
Details
A history of the key code for the last pressed front-panel key is maintained by the instrument. When the
instrument is turned on, or when it is transitioning from local to remote operation, the key code is set to 0
(
display.KEY_NONE
).
Pressing the
EXIT (LOCAL)
key normally aborts a script. To use this function with the
EXIT (LOCAL)
key,
display.locallockout
must be used.
The table below lists the
keyCode
value for each front panel action.