Series 3700A System Switch/Multimeter Reference Manual
Section 11: TSP command reference
3700AS-901-01 Rev. D/June 2018
11-139
display.sendkey()
This function sends a code that simulates the action of a front-panel control.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
display.sendkey(
keyCode
)
keyCode
A parameter that specifies the key press to simulate; see
Details
for more
information
Details
This command simulates pressing a front-panel key or navigation wheel, or turning the navigation
wheel one click to the left or right.
Key codes
Value
Key list
Value
Key list
0
display.KEY_NONE
82
display.KEY_ENTER
65
display.KEY_RANGEUP
83
display.KEY_REC
66
display.KEY_FUNC
84
display.KEY_DMM
67
display.KEY_REL
85
display.KEY_DELETE
68
display.KEY_MENU
86
display.KEY_STEP
69
display.KEY_CLOSE
87
display.KEY_CHAN
70
display.KEY_SLOT
90
display.KEY_RATE
71
display.KEY_RUN
91
display.KEY_LIMIT
72
display.KEY_DISPLAY
92
display.KEY_TRIG
73
display.KEY_AUTO
93
display.KEY_OPEN
74
display.KEY_FILTER
94
display.KEY_PATT
75
display.KEY_EXIT
95
display.KEY_LOAD
76
display.KEY_STORE
97
display.WHEEL_ENTER
77
display.KEY_SCAN
103
display.KEY_RIGHT
78
display.KEY_INSERT
104
display.KEY_LEFT
79
display.KEY_OPENALL
107
display.WHEEL_LEFT
80
display.KEY_CONFIG
114
display.WHEEL_RIGHT
81
display.KEY_RANGEDOWN
When using this function, send built-in constants, such as
display.KEY_RIGHT
, rather than the
numeric value, such as
103
. This allows for better forward compatibility with firmware revisions.
Example
display.sendkey(display.KEY_RUN)
Simulates pressing the RUN key.
Also see
(on page 3-1)