Agilent Technologies 4294A Service Manual Page 253

  • Download
  • Add to my manuals
  • Print
  • Page
    / 518
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 252
Chapter 15 253
Setting the Display (LCD)
Sample program for setting the LCD screen
1. Chapter Title
2. Chapter Title 3. Chapter Title
4. Chapter Title
15. Setting the Display (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
Page view 252
1 2 ... 248 249 250 251 252 253 254 255 256 257 258 ... 517 518

Comments to this Manuals

No comments