The Label Instruction, Lb - HP 7470A Interfacing And Programming Manual

Graphic plotter
Hide thumbs Also See for HP 7470A:
Table of Contents

Advertisement

, )
Jhe Define Terminator Instruction, DT
> WMHHIJHIK1 The define terminator instruction, DT, provides the
)
means to specify the character to be used as the label terminator.
,
URiM The command can be used to change the label terminator from
its default value if ETX (decimal equivalent 3) cannot be used by your
)
computer.
)
WiilfilH
DT
t (terminator) where t is the label terminator.
)
HfliltilMillHIfl
The label mode can only be terminated by sending a
label terminator at the end of the label character string. ASCII control
^
characters (decimal equivalent 1 through 32) can be defined as label
, )
terminators and will not print when invoked, although the function
normally performed by the character will be performed (i.e., LF will
;
)
terminate a label but will also cause a line feed). ASCII characters with
\
decimal equivalent values 33 through 127 can also be defined as the
terminator, but the character will be printed at the end of the label
• )
character string. The ASCII control characters NULL (decimal equiva-
> ,
lent 0) and ESC (decimal equivalent 27) cannot be used as label termi-
' '
nators. Also in the RS-232-C environment, ENQ (decimal equivalent 5)
■ ' )
is not a valid terminator.
' )
NOTE: A DT command with no parameter does not establish ETX as
, ^
the default terminator, since the character immediately following the
mnemonic DT is taken as a parameter. Only a DF or IN command or
)
use of the ETX character itself as the instruction's parameter can be
\
used to reestablish ETX as the label terminator. ■
' )
The following examples of text in a label command demonstrate the
, ,
use of the label terminator.
;
" I N ; S P 2 ; S C O , 5 0 0 0 , 0 , 5 0 0 0 ; "
' ' )
" P R O , 4 5 0 0 ; L B D e f a u 1 t
c o n t r o l
c h a r a c t e r
E T X V r V
" LBter mi nates by performing end-Vr
1
*"
'
)
"LBof-text function.S<"
.
" PRO, 3900; DTtt ; LBPr i nt i ng characters terminate,^*"
•)
"LBbut are also printed.8"
\
"PRO, 3400;DTy; LBContro 1 characters terminate
1
!
1
*"
1
"LBand perform their function.V
)
)
"V6 LABELING
D
Default control character ETX
terminates by performing end-
of-text function.
Printing characters terminate.
#but arQ also printed.#
Control characters terminate
and perform their function.
The Label Instruction, LB
The label instruction, LB, provides the means to letter
text, expressions, or string variables using the currently defined char­
acter set.
I * F 1 T 1
The label instruction can be used to annotate graphs or create
text-only overhead transparencies.
B n z a LB
c
...ct
where t is the label terminator, either the default ETX
character (decimal equivalent 3), or another character
defined by the DT instruction.
iTili'iiuillPhl
All printing characters following the LB mnemonic
are drawn using the currently selected character set. The set used is
specified by the commands CA or CS and selected by the commands
SA or SS, or the ASCII control characters shift-out or shift-in (decimal
equivalent 14 and 15 respectively). If not specified, the default character
set (set 0) is used.
The direction, size, and slant of the characters assume default values if
not previously specified by DI, DR, SI, or SR commands.
The label mode can be terminated only by sending a label terminator
at the end of the character string. Refer to The Define Terminator In­
struction. (With an HP-IB interface, the bus commands interface clear
IFC, device clear DCL, or selected device clear SDC will also terminate
label mode. Refer to Bus Commands, Chapter 10.) Unless a label string
is terminated, subsequent HP-GL commands will appear as labels in
your plot.
The label begins at the current pen position. Before executing the LB
command, the pen should be moved to the location where labeling is to
begin using one of the plot commands (PA, PR, or a character plot
command CP) or by front-panel controls. This establishes the lower-left
LABELING 5-7

Advertisement

Table of Contents
loading

Table of Contents