
Chapter 15
253
Setting the Display (LCD)
Sample program for setting the LCD screen
1. Ch
apter
T
itle
2
. Cha
p
te
r T
itle
3
. Chap
te
r T
itle
4
. Chap
te
r T
itle
15. Settin
g th
e Disp
lay (LCD)
Sample program for setting the LCD screen
Example 15-1 shows a sample program for setting colors for the LCD screen. This
program is saved in the file “color.bas” on the sample program disk.
This program allows you to change the color of the data trace A to green and to increase the
whiteness of colors for the pens 2 to 6 in the Instrument BASIC screen.
Lines 20 to 60
Identifies the external controller and Instrument BASIC and sets the
GPIB address and the select code.
Lines 80 to 90
Substitutes hue of the data trace A and chroma of the pens 2 to 6 in the
Instrument BASIC screen to the variables Trc_a_tint and Pen_clr,
respectively.
Lines 110 to 120 Sets the hue of the data trace A to Trc_a_tint.
Lines 130 to 160 Sets the chroma of the pens 2 to 6 in the Instrument BASIC screen to
Pen_clr.
Example 15-1
Setting Colors in the LCD Screen
10 INTEGER Trc_a_tint,Pen_clr
20 IF SYSTEM$("SYSTEM ID")="HP4294A" THEN
30 ASSIGN @Hp4294a TO 800
40 ELSE
50 ASSIGN @Hp4294a TO 717
60 END IF
70 !
80 Trc_a_tint=33
90 Pen_clr=50
100 !
110 OUTPUT @Hp4294a;"COLO TRAD"
120 OUTPUT @Hp4294a;"TINT ";Trc_a_tint
130 FOR I=2 TO 6
140 OUTPUT @Hp4294a;"COLO PEN"&VAL$(I)
150 OUTPUT @Hp4294a;"COLOR ";Pen_clr
160 NEXT I
170 END
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 ...