![Agilent Technologies 4294A Скачать руководство пользователя страница 148](http://html.mh-extra.com/html/agilent-technologies/4294a/4294a_programming-manual_2867882148.webp)
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
.
Содержание 4294A
Страница 4: ...4 ...
Страница 18: ...18 Contents ...
Страница 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Страница 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Страница 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Страница 130: ...130 Chapter9 Communication with External Equipment Using the I O Ports Sample Program to Use the I O Port ...
Страница 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Страница 246: ...246 13 Application Sample Programs File Transfer Function ...
Страница 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Страница 507: ...Index Index 507 Index ...
Страница 508: ...508 Index Index ...
Страница 509: ...Index Index 509 Index ...
Страница 510: ...510 Index Index ...
Страница 511: ...Index Index 511 Index ...
Страница 512: ...512 Index Index ...
Страница 513: ...Index Index 513 Index ...
Страница 514: ...514 Index Index ...
Страница 515: ...Index Index 515 Index ...
Страница 516: ...516 Index Index ...
Страница 517: ...Index Index 517 Index ...
Страница 518: ...518 Index Index ...