Using Graphics to Create On-Screen
Diagrams
Diagrams showing how to connect devices or perform measurements can
be a powerful tool. You can draw customized diagrams on the analyzer's
display using the following SCPI commands:
DISPlay:WINDow[1|2|10]:GRAPhics: command
These commands let you draw lines, rectangles, circles, and text onto the
screen. The number specified in the WINDow part of the command selects
where the graphics are to be drawn:
WINDow1
draws the graphics to the measurement channel 1
window.
WINDow2
draws the graphics to the measurement channel 2
window.
WINDow10
draws the graphics to the IBASIC display window.
Using split display, you can display the measurement in one half of the
screen while displaying a connection diagram in the other half.
For more details on SCPI graphics commands, refer to "Using Graphics"
in the Programmer's Guide.
If you are using IBASIC, you can use the BASIC graphics keywords such
as MOVE and DRAW to draw diagrams in the IBASIC window.
MOVE X1,Y1
DRAW X2,Y2
Since IBASIC keywords always draw to the IBASIC window, you cannot
use them to draw in the same window as your measurement. To draw in
the measurement window, your IBASIC program must use the standard
SCPI commands.
DISP:WIND1:GRAPHICS: command
and
DISP:WIND2:GRAPHICS: command
For more details on IBASIC graphics, refer to "Graphics and Display
Techniques" in the HP Instrument BASIC User's Handbook Supplement.
Automating Measurements
Using Graphics to Create On-Screen Diagrams
Operator Interaction
3-5