Learning the Basics
Returning Data to the Computer
10 | CLEAR 723 | Initialize analyzer . |
20 | OUTPUT 723;"IP;SNGLS;TS;" |
|
30 | OUTPUT 723;"CENTERWL 1300NM;SPANWL 10NM;RL | Set measurement range . |
40 | OUTPUT 723;"TS;" | Sweep trace A. |
50 | OUTPUT 723;"MKPK HI;" | Mark highest signal level. |
60 | OUTPUT 723;"MKWL?;" | Return wavelength at marker . |
70 | ENTER 723;W | Assign wavelength to computer variable . |
80 | OUTPUT 723;"MKA?;" | Return amplitude at marker . |
90 | ENTER 723;A | Assign amplitude to computer variable . |
100 W=W/1.E 09 | Convert wavelength from meters to nanometers . | |
110 PRINT W,A | Print values . |
To return the amplitude of the 400th element of trace A, you would send the following:
40OUTPUT 723;"SNGLS;TS;;"
50OUTPUT 723;"TRA[400]?;"
60 | ENTER | 723;N | Assign amplitude to computer variable . |
70 | N | Print value. |
To return the amplitude of all elements in trace A send the following commands:
30 | DIM Array (1:800) | Declare computer array for storage of 800 values . | |
40 | OUTPUT | 723;"SNGLS;TS;;" |
|
60 | OUTPUT | 723;"TRA?; | Return amplitude of points in trace A. |
70 | ENTER | 723;Array(*) | Store trace amplitude values in a computer array. |
The FETCH command returns the trace data for the currently active trace. Data is returned in binary while the sweep progresses. Use FETCH to speed data transfer and processing. Refer to Chapter 2 for more information on returning trace data.