On Key Label Functions - Agilent Technologies 4294A Programming Manual

Precision impedance analyzer
Hide thumbs Also See for 4294A:
Table of Contents

Advertisement

Using HP Instrument BASIC

ON KEY LABEL Functions

ON KEY LABEL Functions
HP Instrument BASIC provides you with a means to define softkeys within a program.
Softkeys defined in a program will be displayed in the softkey label area if you press the
while holding down the
[F10]
-
-
IBASIC
ON KEY LABELS
program is being run. An example is given below.
:
100
ON KEY 1 GOTO 150
110
ON KEY 2 LABEL "Print" GOSUB Report
:
You can also automatically display the labels without pressing the
holding down the
[Shift]
LABELS
on the front panel in the course of running a program. Since "KEY"(323page),
one of GPIB commands, works in a manner equivalent to pressing the keys specified as
parameters, the example below displays the softkeys specified by the ON KEY LABEL
statement as if you press the keys
:
200 OUTPUT @Hp4294a;"KEY 47"
210 OUTPUT @Hp4294a;"KEY 0"
220 OUTPUT @Hp4294a;"KEY 6"
:
For the details of the ON KEY LABEL statement, see "HP Instrument BASIC Language
Reference" in HP Instrument BASIC User's Handbook.
148
key on the keyboard or if you press the keys
[Shift]
on the front panel. The labels are displayed only when the
key or without pressing the keys
-
[System]
IBASIC
!
[System]
!
IBASIC
!
ON KEY LABELS
key while
[Shift]
[System]
-
IBASIC
-
-
.
ON KEY LABELS
key
softkey
softkey
Chapter 11
[System]
ON KEY

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents