SUBEND
248 Chapter 6 Command Reference
until another external trigger occurs. After the external trigger is received, the
TRIG SGL command is encountered which suspends subprogram execution until
the 100 readings are taken. After the readings are taken, the message TEST
FINISHED is displayed.
10 OUTPUT 722; "SUB EXTPACE" !STORE LINES 20-110 AS SUBPROGRAM
20 OUTPUT 722; "PRESET NORM" !PRESET, SUSPEND READINGS
30 OUTPUT 722; "MEM FIFO" !ENABLE READING MEMORY, FIFO MODE
40 OUTPUT 722; "DCV 10" !DC VOLTAGE MEASUREMENTS, 1OV RANGE
50 OUTPUT 722; "NRDGS 1000, AUTO" !1000 READINGS/TRIGGER,AUTO SAMPLE EVENT
60 OUTPUT 722; "TARM EXT" !EXTERNAL TRIGGER ARM EVENT
70 OUTPUT 722; "TRIG SGL" !SINGLE TRIGGER EVENT
80 OUTPUT 722; "OHM 1E3" !2-WIRE OHMS, 1k
9 RANGE
90 OUTPUT 722; "NRDGS 100, AUTO" !100 READINGS/TRIGGER, AUTO SAMPLE EVENT
100 OUTPUT 722;"TARM EXT" !EXTERNAL TRIGGER ARM EVENT
110 OUTPUT 722;"TRIG SGL" !SINGLE TRIGGER EVENT
120 OUTPUT 722;"DISP MSG,'TEST FINISHED'"!INDICATE SUBPROGRAM IS DONE
130 OUTPUT 722;"SUBEND"
140 END
SUBEND
Subprogram End. Signals the end of a subprogram.
Syntax SUBEND
Remarks • When storing a subprogram, SUBEND signals the end of the subprogram. When
a subprogram has been executed, SUBEND sets bit 1 (if enabled) in the status
register which signals the subprogram's completion.
• Related Commands: CALL, COMPRESS, CONT, DELSUB, PAUSE,
SCRATCH, SUB
Example See the SUB example on the preceding page.
SWEEP
The SWEEP command specifies the effective_interval between samples (readings
and the total number of samples taken per trigger event [most measurement
functions] or per trigger arm event (sub-sampling only).
Syntax SWEEP [effective_interval] [,#_samples]
effective_interval
For sub-sampling (SSAC or SSDC), this parameter specifies the spacing of
samples in the reconstructed waveform (see Chapter 5 for details). For all other
measurement functions, this parameter specifies the actual time interval from one