REPEAT UNTIL Repeat Until
Example
The following program lowers any off-screen signal.
10
OUTPUT
718;"IP;"
20 OUTPUT
718;"SNGLS;TS;MKPK
HI;"
30 OUTPUT
718;"IF
MA,GT,RL THEN;"
40
OUTPUT
718;"REPEAT;"
50
OUTPUT
718;"RL
UP;TS;MKPK HI;"
60
OUTPUT
718;"UNTIL
MA,LE,RL;"
70
OUTPUT
718;"ENDIF;"
80
OUTPUT 718."CONTS-"
s
3
70
END
Description
Initializes spectrum anal~zfx
Activates single-sweep
mode,
takes sweep, places
marker on signal peak.
Performs lines
40,
50 and 60 if the marker
amplitude is greater than the reference level.
Increases refwence level, takes sweep, places
marker on signal peak.
Does line
40
until peak amplitude is less than
or
equal
to the
reference
level.
Ends the IF THEN
constrwt.
All commands following the REPEAT command are executed until the comparison specified
after the UNTIL command is true.
The following are used for comparing the operands:
GT
Greater than
I.3
Less than
IJ3
Less than or equal to
GE Greater than or equal to
EQ
Equal to
NE
Not equal to
When used within a downloadable program (DLP), the number of REPEAT UNTIL statements
that can be nested is limited to 20.
5-464
Programming Commands