Two window commands are provided for drawing on a limited and controlled area of the display: IWINDOW and DWINDOW. Use IWINDOW (instrument window) to increases or decreases the area on the screen dedicated to displaying OSA measurement results. Use DWINDOW to create a graphics window for drawing. DWINDOW cannot be used when displaying variables, grids, or text with the DSPLY, GRID, or TEXT commands.
Reducing the size of the graticule using IWINDOW leaves more room for messages and other graphics at the sides of the display screen.
Create a reduced display window using the following program.
20 | CLEAR 723; |
|
|
| ||
30 | OUTPUT | 723;"IP;SNGLS;TS;ANNOT OFF;" |
|
| ||
40 | OUTPUT | 723;"SP 10NM;" | Set span. |
| ||
50 | ! |
|
|
|
| |
60 | OUTPUT | 723;"IWINDOW 1000,800;" | Reduce display area for mea- | |||
|
|
|
|
| surement | results . |
70 | OUTPUT | 723;"PU;PA | 0,955;PD;" | Position | pen. | |
80 | OUTPUT | 723;"TEXT$SIGNALS FOUND:$;" | Write text. | |||
90 | ! |
|
|
|
| |
100 | FOR N=1 TO 3 |
|
|
| ||
110 | OUTPUT | 723;"CENTERWL ";(N*300);"NM;TS;" | Set center wavelength. Sweep | |||
|
|
|
|
| trace A. |
|
120 | OUTPUT | 723;"MKPK | HI;" | Mark highest signal level. | ||
130 | OUTPUT 723;"PU;PA | Position | pen. | |||
140 | OUTPUT 723;"DSPLY | ";N;",3,0;" | Label signal. | |||
150 | OUTPUT 723;"TEXT $AMPLITUDE = $;" |
|
| |||
160 | OUTPUT 723;"DSPLY MKA,6,1;" | Print amplitude . | ||||
170 | OUTPUT 723;"TEXT$ dBm$;" |
|
| |||
180 | NEXT N |
|
|
|
|
The DWINDOW command creates a graphics window on the display. The window has a coordinate system that you specify. Use the window for viewing