
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
Содержание 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 ...