
148
Chapter 11
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
[F10]
while holding down the
[Shift]
key on the keyboard or if you press the keys
[System]
-
IBASIC
-
ON KEY LABELS
on the front panel. The labels are displayed only when the
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
[Shift]
key while
holding down the
[Shift]
key or without pressing the keys
[System]
-
IBASIC
-
ON KEY
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
[System]
-
IBASIC
-
ON KEY LABELS
.
:
200 OUTPUT @Hp4294a;"KEY 47" !
[System]
key
210 OUTPUT @Hp4294a;"KEY 0" !
IBASIC
softkey
220 OUTPUT @Hp4294a;"KEY 6" !
ON KEY LABELS
softkey
:
For the details of the ON KEY LABEL statement, see “HP Instrument BASIC Language
Reference” in
HP Instrument BASIC User's Handbook
.
Summary of Contents for 4294A
Page 4: ...4 ...
Page 18: ...18 Contents ...
Page 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Page 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Page 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Page 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Page 246: ...246 13 Application Sample Programs File Transfer Function ...
Page 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Page 507: ...Index Index 507 Index ...
Page 508: ...508 Index Index ...
Page 509: ...Index Index 509 Index ...
Page 510: ...510 Index Index ...
Page 511: ...Index Index 511 Index ...
Page 512: ...512 Index Index ...
Page 513: ...Index Index 513 Index ...
Page 514: ...514 Index Index ...
Page 515: ...Index Index 515 Index ...
Page 516: ...516 Index Index ...
Page 517: ...Index Index 517 Index ...
Page 518: ...518 Index Index ...