Display.getlastkey() - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Models 707B and 708B Switching Matrix Reference Manual
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
Usage
keyCode = display.getlastkey()
keyCode
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.
707B-901-01 Rev. A / August 2010
This example prints the cursor position directly. In this example, the
cursor is in row 1 at column 3, with an invisible cursor:
(on page 7-70)
(on page 7-80)
(on page 7-81)
(on page 7-82)
Affected by
See Details for more information
This example reads the cursor position into local
variables and prints them. An example return is:
1.000000000e+00
1.000000000e+00
3.000000000e+00
0.000000000e+00
Where saved
Section 7: Command reference
1.000000000e+00
Default value
7-69

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents