Chapter 6 Command Reference 215
PAUSE
PAUSE
Suspends subprogram execution. The subprogram can be resumed using the
CONT command or by executing the GPIB Group Execute Trigger command.
Syntax PAUSE
Remarks • The PAUSE command is allowed only within a subprogram.
• Only one subprogram will be preserved in a suspended state. If a subprogram
is paused and another is run which also becomes paused, the first will be
terminated and the second will remain suspended.
• With the input buffer off (INBUF OFF command), the GPIB bus is normally
held by the multimeter until a called subprogram is completely executed. If a
PAUSE command is encountered in a subprogram, the GPIB bus is released
immediately.
• Nested PAUSE commands are not allowed; that is, when a subprogram is called
from another subprogram, the called subprogram cannot contain a PAUSE
command.
• Query Command. The PAUSE? query command returns a response indicating
whether a subprogram is currently paused. The possible responses are YES
(numeric query equiv. = 1) indicating a subprogram is paused, or NO (numeric
query equiv. = 0).
• Related Commands: CALL, COMPRESS, CONT, DELSUB, TRIGGER
(GPIB command), SCRATCH, SUB, SUBEND
Example 10 OUTPUT 722;"SUB OHMAC1" !STORES SUBPROGRAM NAMED OHMAC1
20 OUTPUT 722;"PRESET NORM" !SUSPENDS TRIGGERING, PRESET
30 OUTPUT 722;"MEM FIFO" !ENABLES READING MEMORY, FIFO MODE
40 OUTPUT 722;"OHM" !SELECTS 2-WIRE OHMS MEASUREMENTS
50 OUTPUT 722;"NRDGS 5" !SELECTS 5 READINGS PER TRIGGER
60 OUTPUT 722;"TRIG SGL" !GENERATES A SINGLE TRIGGER
70 OUTPUT 722;"PAUSE" !SUSPENDS PROGRAM EXECUTION
80 OUTPUT 722;"ACV" !SELECTS AC VOLTAGE MEASUREMENTS
90 OUTPUT 722;"NRDGS 1O" !SELECTS 10 READINGS PER TRIGGER
100 OUTPUT 722;"TRIG SGL" !GENERATES A SINGLE TRIGGER
110 OUTPUT 722;"SUBEND" !SIGNIFIES THE END OF THE SUBPROGRAM
120 END
When you call the above subprogram, the multimeter executes the subprogram
line by line. Lines 20 through 60 cause the multimeter to make five 2-wire ohms
readings and place them in reading memory. When line 70 is encountered,
subprogram execution ceases. A subsequent CONT command or Group Execute
Trigger resumes program execution. Lines 80 through 100 then cause the
multimeter to make 10 AC voltage readings and place them in reading memory.