Displaying Graphics; Graphics Commands Of Instrument Basic - Agilent Technologies 4294A Programming Manual

Precision impedance analyzer
Hide thumbs Also See for 4294A:
Table of Contents

Advertisement

Using HP Instrument BASIC

Displaying Graphics

Displaying Graphics
You can draw graphics on the screen of the 4294A by use of HP Instrument BASIC.
the 4294A has two screens, that is, the instrument screen and the graphics screen. These
screens are both always displayed on the LCD, and you cannot choose either of them to
display. The instrument screen is made up of the area for displaying traces and the area for
displaying softkey labels. The Instrument BASIC editor is also displayed in the area for
displaying traces. The graphics screen covers the whole instrument screen as shown in
Figure 11-1. The graphics screen allows what are displayed on the instrument screen to
pass through as a transparent sheet, so you can draw graphics independently anywhere in
the area for displaying traces and the area for displaying softkeys.
Figure 11-1
The screen makeup of the Agilent 4294A
A point on the graphic screen can be specified by the coordinates shown in Figure 11-1.
The lower left corner of the screen corresponds to the origin (0, 0) and the upper right
corner of the screen corresponds to the point (590, 421). You give these coordinates to the
parameters in the MOVE and DRAW statements.

Graphics commands of Instrument BASIC

The 4294A HP Instrument BASIC offers three graphics-related commands; MOVE,
DRAW, and GCLEAR.
MOVE
DRAW
GCLEAR
NOTE
After initializing the graphics screen by use of GCLEAR, you can execute the MOVE
command and the DRAW command up to 1998 times. Even if you execute the MOVE
command and the DRAW command after that, nothing will be drawn.
152
Moves the pen from the current pen position to the point specified by
the coordinates given as a parameter.
Draws a straight line from the current pen position to the point
specified by the given coordinates.
Clears the graphics screen, and moves the pen to the origin.
Chapter 11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents