Subend; Sweep - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

SUBEND

SUBEND

Syntax
Remarks
Example

SWEEP

Syntax
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"
20 OUTPUT 722; "PRESET NORM"
30 OUTPUT 722; "MEM FIFO"
40 OUTPUT 722; "DCV 10"
50 OUTPUT 722; "NRDGS 1000, AUTO" !1000 READINGS/TRIGGER,AUTO SAMPLE EVENT
60 OUTPUT 722; "TARM EXT"
70 OUTPUT 722; "TRIG SGL"
80 OUTPUT 722; "OHM 1E3"
90 OUTPUT 722; "NRDGS 100, AUTO"
100 OUTPUT 722;"TARM EXT"
110 OUTPUT 722;"TRIG SGL"
120 OUTPUT 722;"DISP MSG,'TEST FINISHED'"!INDICATE SUBPROGRAM IS DONE
130 OUTPUT 722;"SUBEND"
140 END
Subprogram End. Signals the end of a subprogram.
SUBEND
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
See the SUB example on the preceding page.
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).
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
!STORE LINES 20-110 AS SUBPROGRAM
!PRESET, SUSPEND READINGS
!ENABLE READING MEMORY, FIFO MODE
!DC VOLTAGE MEASUREMENTS, 1OV RANGE
!EXTERNAL TRIGGER ARM EVENT
!SINGLE TRIGGER EVENT
!2-WIRE OHMS, 1k
9
RANGE
!100 READINGS/TRIGGER, AUTO SAMPLE EVENT
!EXTERNAL TRIGGER ARM EVENT
!SINGLE TRIGGER EVENT

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents