Creating Downloadable Programs
Creating a Downloadable Program
The following example illustrates this program structure. Note that the
10 | !File Name: Peaks Date: 4/1/91 | Author: Name |
20 | !View the largest signal in two ranges using narrow span. | |
30 | !Store the amplitude of the largest signal in each range. | |
40 | CLEAR 723 | Initialize OS A. |
50 | OUTPUT 723;"IP;SNGLS;TS;"; |
|
60 | OUTPUT 723;"DISPOSE ALL;"; | Erase internal memory . |
70OUTPUT 723;"VARDEF AMP_A,0;";
80OUTPUT 723;"VARDEF AMP_B,0;";
90! Store
100 | OUTPUT | 723;"FUNCDEF | VIEW_SIGNAL,@"; | Begin denition of VIEW |
| SIGNAL function. | |||
110 | OUTPUT | 723;"TS;MKPK | HI;MKTRACK ON;TS;SP 100NM;"; | Place marker on largest signal and view | |||||
|
|
|
|
|
| it with narrow span width. | |||
120 | OUTPUT | 723;"@;"; |
|
|
| End denition. |
|
|
|
130 | ! Store main function in internal memory. |
|
|
|
| ||||
140 | OUTPUT | 723;"FUNCDEF | SCAN,@"; |
| Begin denition | of SCAN function. | |||
150 | OUTPUT | 723;"IP;"; |
|
| Set measurement | range. | |||
160 | OUTPUT | 723;"STARTWL | 600NM;STOPWL | 1000NM;"; |
|
|
|
| |
170 | OUTPUT 723;"VIEW_SIGNAL;"; |
| Execute function that marks the highest | ||||||
|
|
|
|
|
| signal and narrows span. | |||
180 | OUTPUT | 723;"MOV | AMP_A,MKA;"; |
| Store marker amplitude in a variable. | ||||
190 | OUTPUT | 723;"WAIT | 2;"; |
|
|
|
|
| |
200 | OUTPUT | 723;"STARTWL | 1000NM;STOPWL | 1700NM;"; | Select new wavelength range . | ||||
210 | OUTPUT | 723;"VIEW_SIGNAL;"; |
| Execute function that marks the highest | |||||
|
|
|
|
|
| signal and narrows the span. | |||
220 | OUTPUT | 723;"MOV | AMP_B,MKA;"; |
| Store marker amplitude in a variable. | ||||
230 | OUTPUT | 723;"@;"; |
|
|
| End denition. |
|
|
|
240! Execute main function.
250OUTPUT 723;"SCAN;"
260END