8
Special
F
eatures
and
A
dvanced
T
echniques
The
topics
covered
in
this
chapter
are
:
A
utoloading
and
running
a
program
automatically
(A
UTOST)
On
Key
Label
function
Increasing
program
speed
A
utoloading
and
Running
a
Program
A
utomatically
(A
UTOST)
The
analyzer
allows
you
to
create
a
special
program
le
called
A
UTOST
.
This
program
is
automatically
loaded
and
run
every
time
the
analyzer
is
turned
ON.
When
you
use
this
capability
,
the
disk
on
which
you
saved
A
UTOST
must
be
inserted
in
the
disk
drive
before
the
analyzer
is
turned
ON.
The
system
rst
checks
to
see
if
there
is
an
A
UTOREC
le
on
the
disk.
If
there
is
,
the
system
reads
the
A
UTOREC
le
to
set
up
the
analyzer
,
and
then
loads
and
runs
the
A
UTOST
program.
(F
or
more
information
on
A
UTOREC,
see
\A
uto
Recall
Function"
in
Appendix
C
of
the
Function
R
eference
.)
On
K
ey
Label
Function
The
Instrument
B
ASIC
allows
you
to
dene
softkeys
from
within
a
program.
The
softkey
labels
you
dene
will
appear
when
pressing
the
4
Shift
5
-
4
F10
5
key
on
the
Keyboard.
The
labels
are
displayed
while
running
the
program.
The
ON
KEY
statement
is
used
to
dene
the
softkeys
.
F
or
example:
......
100
ON
KEY
1
GOTO
150
110
ON
KEY
2
LABEL
"Print"
GOSUB
Report
......
The
KEY
statement
is
used
to
display
the
softkey
labels
dened.
The
following
set
of
statements
is
the
same
as
the
key
strokes
4
System
5
NNNNNNNNNNNNNNNNNNNN
IBASIC
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
ON
KEY
LABELS
:
......
200
OUTPUT
@Hp4396;"KEY
47"
!
SYSTEM
key
210
OUTPUT
@Hp4396;"KEY
0"
!
IBASIC
softkey
220
OUTPUT
@Hp4396;"KEY
7"
!
ON
KEY
LABELS
softkey
......
F
or
more
information
on
the
ON
KEY
statement,
see
the
Instrument
B
ASIC
Language
R
eference
of
the
Instrument
B
ASIC
Users
Handbook.
Example
programs
for
ON
KEY
LABEL
keys
are
shown
in
Chapter
6.
Special
Features
and
Advanced
T
echniques
8-1