Language Reference
ABORT
ABORT | Stop the execution of a |
Example Use ABORT to interrupt operation of a repeat loop.
120 | CLEAR | 723 |
|
| Initialize analyzer . | |
130 | OUTPUT 723;"IP;" |
|
|
|
| |
140 | OUTPUT | 723;"VARDEF | KEY,0;" | Dene a variable for storing the number of the | ||
|
|
|
|
| key that was last pressed. | |
145 | OUTPUT | 723;"FUNCDEF |
| EXAMPLE,%"; | Create | |
150 | OUTPUT | 723;"REPEAT;"; | Begin repeat loop. | |||
160 | OUTPUT | 723;"READMENU | KEY,"; | Store the number of the pressed key in the user- | ||
|
|
|
|
| dened variable , KEY. The keys are dened in | |
|
|
|
|
| the next program lines. | |
170 | OUTPUT 723;"1,%SET | SPAN %,"; | FFFFFFFFFFFFFFFFFFFFF | |||
SET SPAN is key number 1. | ||||||
180 | OUTPUT | 723;"2,%EXPAND RANGE%,"; | FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | |||
EXPAND | RANGE is key number 2. | |||||
190 | OUTPUT | 723;"14,%EXIT | %;"; | FFFFFFFFFFFF |
| |
EXIT is | key number 14. | |||||
200 | OUTPUT | 723;"IF KEY,EQ,1;"; | If KEY equals 1, set measurement range to | |||
|
|
|
|
| 1300 nm. | |
210 | OUTPUT 723;"THEN;CENTERWL 1300NM;SP 10NM;"; |
|
| |||
220 | OUTPUT 723;"ELSIF KEY,EQ,2;"; | If KEY equals 2, change the measurement | ||||
|
|
|
|
| range to 1550 nm. | |
230 | OUTPUT 723;"THEN;CENTERWL 550NM;SP 10NM;"; |
|
| |||
240 | OUTPUT 723;"ELSIF KEY,EQ,14;"; | If KEY equals 14, then stop repeating lines 150 | ||||
|
|
|
|
| 0 280, and go to line 290 (ABORT). |
250OUTPUT 723;"THEN;ABORT;";
260OUTPUT 723;"ENDIF;";
270OUTPUT 723;"PA 500,500;";
280 | OUTPUT 723;"UNTIL 1,EQ,0;"; | End | |
290 | OUTPUT | 723;"TRDSP TRA,OFF;" | Turn o trace A. |
300 | OUTPUT | 723;"TEXT @EXIT KEY ENDS REPEAT LOOP.@;%;"; |
|